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

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

1 ACCEPTED SOLUTION

Accepted Solutions
Ksharp
Super User

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; 

View solution in original post

6 REPLIES 6
Ksharp
Super User

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

cbt2119
Obsidian | Level 7

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; 
Ksharp
Super User

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; 
Ksharp
Super User

And better post it at STAT forum , @StatDave  is there . I am not expert about statistic .

cbt2119
Obsidian | Level 7

Okay, thank you, I will try this!

SAS Innovate 2025: Call for Content

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!

Submit your idea!

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
  • 6 replies
  • 1384 views
  • 0 likes
  • 3 in conversation