BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
CynicalFire
Fluorite | Level 6

I am using PROC MIXED in SAS Studio. When looking through communities here, I found this one response that sort of answers my question, but the problem is, I don't understand how to use it.

 

The OUTM= option on the model statement gives you just the predicted fixed-effects means (and associated statistics, such as standard errors). The OUTP= option gives you the predictions for fixed and random effects (i.e., the EBLUPS), with associated statistics.

 

The following is my current code, and I don't quite understand how to put the OUTM and the OUTP options in my model.

PROC MIXED data=bmi METHOD=ML COVTEST;
CLASS studyid;
MODEL ChildhoodBMIz = age sex age*age /SOLUTION;
RANDOM INTERCEPT age /SUB=studyid TYPE=UN G GCORR;
RUN;

 

However, if there is another, easier way to do accomplish what I am trying to do, then I will gladly do that instead. 

1 ACCEPTED SOLUTION

Accepted Solutions
PaigeMiller
Diamond | Level 26
MODEL ChildhoodBMIz = age sex age*age /SOLUTION outp=sas_data_set_name outpm=sas_data_set_name2;
--
Paige Miller

View solution in original post

3 REPLIES 3
PaigeMiller
Diamond | Level 26

The OUTP= option and the OUTPM= option (no such option as OUTM=) go in the MODEL statement.

 

https://documentation.sas.com/?docsetId=statug&docsetTarget=statug_mixed_syntax10.htm&docsetVersion=...

--
Paige Miller
CynicalFire
Fluorite | Level 6

Okay, thank you for the link, but I still do not understand how to put it into my code. 

PaigeMiller
Diamond | Level 26
MODEL ChildhoodBMIz = age sex age*age /SOLUTION outp=sas_data_set_name outpm=sas_data_set_name2;
--
Paige Miller

sas-innovate-2024.png

Available on demand!

Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.

 

Register now!

What is ANOVA?

ANOVA, or Analysis Of Variance, is used to compare the averages or means of two or more populations to better understand how they differ. Watch this tutorial for more.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 3 replies
  • 851 views
  • 0 likes
  • 2 in conversation