Statistical Procedures

Programming the statistical procedures from SAS
BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
bsriv
Calcite | Level 5

Hi all- relatively new to SAS, and these forums have been really helpful, but I'm using a GEE (rather than logistic regression) because i have data with repeated measures and multiple predictors, but I can't figure out how to just have a basic table of ORs, 95% CIs, and p values.  I have tried ESTIMATE and LSMEANS but it's not giving me what I want (the analyses look bivariate with both).  Here is my model:

 

proc genmod data=work.opioid27;

class BJH_MedRec countx (ref="1") racex (ref="1") agegrp (ref="2") narcanx (ref="1") alcoholx (ref="1") moodx (ref="1") sudx (ref="1") yr (ref="2005") / param=ref;

model suicidex=countx racex agegrp narcanx alcoholx moodx sudx yr / dist=bin link=logit;

repeated subject=BJH_MedRec / type=cs;

run;

 

Thanks!

1 ACCEPTED SOLUTION

Accepted Solutions
SAS_Rob
SAS Employee

If you use the PARAM=GLM option on the CLASS statement then you will be able to use the ODDSRATIO option on the LSMEANS statement.  These estimates will all be adjusted for the other effects in the model.

 

proc genmod data=work.opioid27;

class BJH_MedRec countx (ref="1") racex (ref="1") agegrp (ref="2") narcanx (ref="1") alcoholx (ref="1") moodx (ref="1") sudx (ref="1") yr (ref="2005") / param=glm;

model suicidex=countx racex agegrp narcanx alcoholx moodx sudx yr / dist=bin link=logit;

repeated subject=BJH_MedRec / type=cs;

lsmeans countx racex agegrp narcanx alcoholx moodx sudx yr/diff oddsratio cl; 

run;

View solution in original post

3 REPLIES 3
Rick_SAS
SAS Super FREQ

Did you try using the EXP option on the ESTIMATE statement? See the GEE example on this web page.

SAS_Rob
SAS Employee

If you use the PARAM=GLM option on the CLASS statement then you will be able to use the ODDSRATIO option on the LSMEANS statement.  These estimates will all be adjusted for the other effects in the model.

 

proc genmod data=work.opioid27;

class BJH_MedRec countx (ref="1") racex (ref="1") agegrp (ref="2") narcanx (ref="1") alcoholx (ref="1") moodx (ref="1") sudx (ref="1") yr (ref="2005") / param=glm;

model suicidex=countx racex agegrp narcanx alcoholx moodx sudx yr / dist=bin link=logit;

repeated subject=BJH_MedRec / type=cs;

lsmeans countx racex agegrp narcanx alcoholx moodx sudx yr/diff oddsratio cl; 

run;

sas-innovate-white.png

Our biggest data and AI event of the year.

Don’t miss the livestream kicking off May 7. It’s free. It’s easy. And it’s the best seat in the house.

Join us virtually with our complimentary SAS Innovate Digital Pass. Watch live or on-demand in multiple languages, with translations available to help you get the most out of every session.

 

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
  • 6249 views
  • 3 likes
  • 3 in conversation