BookmarkSubscribeRSS Feed
gx2144
Calcite | Level 5

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.

5 REPLIES 5
PaigeMiller
Diamond | Level 26

Doesn't Google find this macro?

--
Paige Miller
Tom
Super User Tom
Super User

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

 

Rick_SAS
SAS Super FREQ

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

 

diaoxuyang
Calcite | Level 5

Hello, I am a graduate student of Peking Union Medical College, I would like to request the code file of macro program, thank you.

PaigeMiller
Diamond | Level 26

The instructions for requesting this macro have already been provided in this thread. Please try those instructions.

--
Paige Miller

hackathon24-white-horiz.png

The 2025 SAS Hackathon Kicks Off on June 11!

Watch the live Hackathon Kickoff to get all the essential information about the SAS Hackathon—including how to join, how to participate, and expert tips for success.

YouTube LinkedIn

How to Concatenate Values

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 5 replies
  • 4685 views
  • 3 likes
  • 5 in conversation