Dear SAS Community,
I am fitting a couple of generalized linear regression model with continuous outcomes: BUA, SOS, SI. The independent predictors are both categorical and continuous and my data is in long form. I would like to use PROC GENMOD for this, but I'm not sure if my code is calling the correct type of model. Do I need to include a repeated statement for the visit variable or should the code below work?
Outcome=SOS (continuous)
Predictor=Group (dichotomous)
Time Variable=Visit (1,2,3)
proc genmod data=qus;
class group (ref="2") / param=ref;
class visit (ref="1") / param=ref;
class id;
model sos = group visit / dist=normal link=identity;
run;
Thank you,
Cara
I think you should drop VISIT .
proc genmod data=qus;
class group (ref="2") / param=ref;
class id;
model sos = group / dist=normal link=identity;
repeated subject=id / within=visit;
run;
Moved to Procedures community and altered title.
Yes. You should consider use GEE or Mixed model,since you have visit variable(repeated measure).
Check
PROC GEE
or
PROC GENMOD + REPEATED statement
or
PROC MIXED
PROC GLIMMIX
Thank you. So when I add the following repeated statement, not much changes to my model output. Am I using the statement correctly?
proc genmod data=qus;
class group (ref="2") / param=ref;
class visit (ref="1") / param=ref;
class id;
model sos = group visit / dist=normal link=identity;
repeated subject=id;
run;
I think you should drop VISIT .
proc genmod data=qus;
class group (ref="2") / param=ref;
class id;
model sos = group / dist=normal link=identity;
repeated subject=id / within=visit;
run;
And better post it at STAT forum , @StatDave is there . I am not expert about statistic .
Okay, thank you, I will try this!
Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!
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.