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

Dear all, I have solve using proc genmod to perform modified poisson regression to generate Risk ratio,

here, how can I adjusted the site effect, would the following program appropriate?

 

proc genmod data = stroke;
class enroll_order group(desc) score(desc) IVT sites/PARAM=GLM;
model score = group ivt sites/ dist=poisson link=log covb corrb;
repeated subject = enroll_order/type = un;
estimate "beta" group 1 -1/exp;
lsmeans group/diff exp cl;
run;

 

 

 

Besides, how can I use mixed model to get risk ratio with sites as random effect?

I'm confuse to get the RR ratio, and the class group(desc) seems to wrong in proc glimmix,

How can I calculate RR with robust estimator as Zou.et(2004)

 

proc glimmix data=stroke EMPIRICAL;
class site group;
model Score= group/ dist=poisson link=log SOLUTION;
random site/ subject= enroll_order;
run;

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
StatDave
SAS Super FREQ

Just omit the EXP option and then exponentiate the estimate and confidence limits manually.

View solution in original post

7 REPLIES 7
SteveDenham
Jade | Level 19

For your GLIMMIX code, I would add enroll_order to the CLASS statement. I am somewhat baffled by the GENMOD code, though.  The CLASS statement there looks to me as if it treats your response variable (score) as a multinomial.  Given that, I am not sure that the data follow a Poisson distribution, but rather follow an ordinal multinomial distribution.

 

SteveDenham 

Diels_O
Obsidian | Level 7

Thank you very much! Now I add it into a class statement, and how can I estimate the RR ratio using the output of glimmix?  Thank you again!

Diels_O
Obsidian | Level 7
Steve, The code in the Genmod was introduced by Zou.et (2004) using the genmod to generate the modified poisson regression with robust estimator. The score was a binary variable , not a multinomial. Really thank you for your careful look.
StatDave
SAS Super FREQ

See this note for Zou's Poisson method. Note that the response must be binary, not multi-level to do this - a relative risk is a ratio of probabilities of the event level of a binary response. In the note, it is shown using GENMOD, but GLIMMIX could also be used.

Diels_O
Obsidian | Level 7

Thank you Dave! I met problem with the lsmeans and the estimate, How can I get RR and it's CL in proc glimmix?

The estimate seems to not provide exp function. Thank you again for your kind help!

StatDave
SAS Super FREQ

Just omit the EXP option and then exponentiate the estimate and confidence limits manually.

hongjie76
Calcite | Level 5
Try: estimate "RR group" group 1 -1/cl ilink;

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
  • 7 replies
  • 982 views
  • 3 likes
  • 4 in conversation