No announcement yet.
  • Filter
  • Time
  • Show
Clear All
new posts

  • Splines after Cox-model

    Dear Stata users,

    I am trying to draw splines using Stata after Cox-model as shown in the below figure. In this figure, hazard ratios and 95% confidence intervals are related to body mass index, modelled by linear splines with knots at body mass indices of 20, 25, 30, and 35 (reference is body mass index 25 in each category). Hazard ratios and 95% confidence intervals were obtained from Cox regression models adjusted for various other variables.

    Click image for larger version

Name:	image_13096.png
Views:	2
Size:	136.6 KB
ID:	1478666

    In my case I would like to draw the hazard ratio of ESKD in relation to baseline GFR using one value of GFR as reference.

    I have tried the codes from following post.

    But got some error.

    I would really appreciate if anyone may help us.

    Many thanks.