Hi, I am doing the dose-response relationship using restricted cubic splines in cox model and I need the code for %RCS_REG macro. Could someone provide the code for this macro? Or could someone provide any examples for this topic?
Appreciated.
Doesn't Google find this macro?
The %RCS_Reg SAS macro as well as the NHANES III data can be sent by email upon request at loic.desquilbet@gmail.com
https://onlinelibrary-wiley-com.eu1.proxy.openathens.net/doi/epdf/10.1002/sim.3841
PROC PHREG supports the EFFECT statement, which you can use to create restricted cubic splines, so you can use restricted cubic splines as explanatory variables without using any macro. See the following example (which uses PROC GLMSELECT, but the syntax is identical for PHREG):
Regression with restricted cubic splines in SAS
See also the follow-up article
An easier way to perform regression with restricted cubic splines in SAS
Available on demand!
Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.
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.