Forgot how to plot restricted cubic spline (RCS) after COX regression

113 views Asked by At

everyone

A month ago I successfully drew the RCS plot after a COX regression. Unfortunately, I did not save the code and it seems my R has cleared the command history. I only have the picture of the RCS. I remember I used some package to derive the RCS plot, but I cannot identify it.

Here is the RCS plot derived. Thank you.

HR RCS

I tried to analyze some data. I expect the result shown in the picture I have uploaded. I totally forgot how to do that and I am not able to find command history.

0

There are 0 answers