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
Hello, I am a graduate student of Peking Union Medical College, I would like to request the code file of macro program, thank you.
The instructions for requesting this macro have already been provided in this thread. Please try those instructions.
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.