Hi all,
I am doing a matched (1:10) case-control study looking at the association between income (in ranks) and the risk of stroke.
I use conditional logistic regression:
PROC LOGISTIC desc data = stroke;
strata = matched;
model stroke (event = '1') = INCOMErank;
RUN;
Now I wish to look at potential non-linearity using cubic splines with knots at the 20, 50, 80th percentile of INCOME rank. Moreover, I wish to output the odds ratio for each rank compared to the 50th percentile INCOME rank. My goal is to achieve a figure with odds ratios on the y-axis and income-ranks on the x-axis.
Thank you for your time.
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.
Ready to level-up your skills? Choose your own adventure.