BookmarkSubscribeRSS Feed
dongsunk
Calcite | Level 5

hello

 

I want draw confidence graph(90 and 95%) of mixed random effects in SAS proc mixed

 

how can i do it?

 

I also want to draw a graph of the age effect considering the squared effect of age in the fixed effect results. Is this possible?

 

Thank u.

3 REPLIES 3
Rick_SAS
SAS Super FREQ

I don't understand your question about the random effects. I think it would be useful to see the SAS code that you are running. 

 

For some general ideas about visualizing mixed models, see

Longitudinal data: The mixed model - The DO Loop (sas.com)

Visualize a mixed model that has repeated measures or random coefficients - The DO Loop (sas.com)

 

Regarding the fixed effects, yes, you can use PROC PLM and the EFFECTPLOT statement to construct plots like this. Without knowing what procedure you are using, the best I can offer is some general examples:

Use the EFFECTPLOT statement to visualize regression models in SAS - The DO Loop

Visualize interaction effects in regression models - The DO Loop (sas.com)

dongsunk
Calcite | Level 5
Thank u for your reply !

I have another question.

I want to show curve graph(ex U), but effectplot can show just linear effect how can i do?

model y=age age_2

thank u !
Rick_SAS
SAS Super FREQ

The EFFECTPLOT statement visualizes whatever model you specify. So if you want additional effects and interactions, include those in the model. The third link 

Use the EFFECTPLOT statement to visualize regression models in SAS - The DO Loop

shows many examples that are not linear predictors. Here's another example for you to study:

proc glm data=Sashelp.Cars;
   class Origin(ref='Europe');
   model mpg_city = Horsepower | Origin Horsepower*Horsepower;
   store GLMModel3;
run;

proc plm restore=GLMModel3 noinfo;
   effectplot slicefit(x=Horsepower sliceby=Origin) / clm;
run;

SAS Innovate 2025: Save the Date

 SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!

Save the date!

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 3 replies
  • 511 views
  • 2 likes
  • 2 in conversation