Hello.
I'm currently trying to fit a GLMM for a longitudinal analysis.
In this analysis the dependent variable is binary and is measured several times per subject. We've noticed that the evolution of the response of this dependent variable is clearly not linear over time. In order to take this phenomenon into account, we've insert a spline function over the time covariate.
At present the initial model look like this:
PROC GLIMMIX DATA = data METHOD = LAPLACE;
CLASS ind profil;
EFFECT spline_time=SPLINE(time / KNOTMETHOD=PERCENTILES(9) DEGREE = 1);
MODEL var_dep(EVENT='1') = spline_time|profil / DIST=BIN LINK = LOGIT;
RANDOM INT time / SUBJECT = ind;
RUN;
The problem with the spline function is that I can't get any odds ratio, even for covariates without spline function.
Is there any way (maybe a macro) to display the odds ratio ?
Thank you.
So long as you are not looking for differences in probabilities (search for the Marginals Macro for this), you can get the odds ratio by exponentiating an appropriate ESTIMATE statement. Examples can be found at the following links:
Give the basics for the endpoints mentioned. It should not be too difficult to adapt these to your work.
SteveDenham
Join us for SAS Innovate 2025, our biggest and most exciting global event of the year, in Orlando, FL, from May 6-9.
Early bird rate extended! Save $200 when you sign up by March 31.
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.