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.
April 27 – 30 | Gaylord Texan | Grapevine, Texas
Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and save with the early bird rate—just $795!
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.