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.

3 REPLIES 3
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

 

sas-innovate-2024.png

Available on demand!

Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.

 

Register now!

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 3 replies
  • 2875 views
  • 3 likes
  • 4 in conversation