BookmarkSubscribeRSS Feed
SASuser11466
Calcite | Level 5

Hello everyone:

I understand that when using Proc GLM in 9.3, you can use ods graphics on to create a default interaction graph.

I am using the following simple code to run an interaction between gender and BMI

odsgraphics on;

proc GLM data=work.BMI;

class FEMALE CIT_RACE MARSTAT EDUCATS WORKING;

title'Model 4: OLR Prediciting Positive Mental Health';

title2'Interatcion BMI*FEMALE';

model POSMEN =  BMI FEMALE H001 CIT_RACE MARSTAT LOGINC EDUCATS WORKING CHILDREN

BMI*FEMALE / SOLUTION;

RUN;QUIT; ods graphics off;

when I run this I get all the standard output in ODS format (set to a browser) but I do not get a graph. Any assistance greatly appreciated. Thanks!

1 REPLY 1
Reeza
Super User

the interaction plot produced by default when you have a two-way analysis of variance model, with just two CLASS variables

I don't think your model meets the default requirements.

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

Register now!

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 1 reply
  • 401 views
  • 0 likes
  • 2 in conversation