Hi,
For a glimmix model,
I am trying to find an option that would output rate ratios.
Thanks!
That can be done in PROC GENMOD as shown in the second half of this note. If you must use GLIMMIX, then you will need to include a STORE statement to save your model, then use the LSMEANS statement, as in the Note, in PROC PLM. For example:
proc glimmix data=insure;
class car age;
model c = car age / dist=poisson link=log offset=ln;
store glim;
run;
proc plm restore=glim;
lsmeans age / ilink diff exp cl;
run;
That can be done in PROC GENMOD as shown in the second half of this note. If you must use GLIMMIX, then you will need to include a STORE statement to save your model, then use the LSMEANS statement, as in the Note, in PROC PLM. For example:
proc glimmix data=insure;
class car age;
model c = car age / dist=poisson link=log offset=ln;
store glim;
run;
proc plm restore=glim;
lsmeans age / ilink diff exp cl;
run;
The values in the "Estimate" column in the LSMEANS table are linear combinations of model parameters and therefore are not in general going to equal any single parameter estimate in the rest of the GLIMMIX output. You can add the E option in the LSMEANS statement to see the coefficients of the linear combination used.
Available on demand!
Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.
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.