BookmarkSubscribeRSS Feed
nwang5
Obsidian | Level 7

Hi everyone,

 

I hope you are doing well. I am trying to get outcome values among categorical exposures in a mixed model.

Exposure in this study is the perceived risk of ADRD.

Outcome is the cognitive score.

 

I want to get the figure below but I do not know how to get outcome values in a mixed model.

 

nwang5_0-1700244419720.png

here is my code:

proc mixed covtest noclprint data = hrslong02 method=REML PLOTS(MAXPOINTS=none );
class hhidpn percived(ref="Unlikely") RAGENDER(ref="Female") race(ref="1") edu_4cat(ref="Lt High-school") married(ref="1") emply(ref="1");
model cogtot = percived visit_time percived*visit_time age10 RAGENDER race edu_4cat married emply hhincomelog_baseline  / solution cl ddfm = SATTERTHWAITE;
random intercept visit_time / subject=hhidpn type=un ;
run;

 

1 REPLY 1
jiltao
SAS Super FREQ

By "outcome values", do you mean predicted values? if so, you would add the OUTP=preddata option in the MODEL statement in PROC MIXED. Then the preddata data set would contain the predicted values.

Hope this helps,

Jill

SAS INNOVATE 2024

Innovate_SAS_Blue.png

Registration is open! SAS is returning to Vegas for an AI and analytics experience like no other! Whether you're an executive, manager, end user or SAS partner, SAS Innovate is designed for everyone on your team. Register for just $495 by 12/31/2023.

If you are interested in speaking, there is still time to submit a session idea. More details are posted on the website. 

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
  • 1 reply
  • 190 views
  • 1 like
  • 2 in conversation