1
$\begingroup$

I would like to recreate the following figure enter image description here

The authors state this about the figure: "Multivariate Cox regression models witha cubic natural spline analysis were used to determine the potential nonlinear association between RBP4 levels (continuous) and the risk of incident type 2 diabetes."

I am sure this was obtained from the rms package. However, can anyone give me a run-down of where the "cubic natural splines" play into this? Additionally, does this mean proportional hazards was violated given what we see is "U-shaped"?

Thank you for any sight. I am grateful for the survival analysis community that has helped me in the past.

$\endgroup$
1
$\begingroup$

To answer your last question first (see detail later): the proportional hazards assumption (PH assumption) is about whether the impact of a particular risk factor might be constant over time, irrespective of the functional form of that risk factor (categorical, linear, splined function)


Natural cubic splines (more commonly called restricted cubic splines in my experience in biostatistics - this is also the terminology used in the rms package and might help you find other relevant material) are instead about how the hazard function for the outcome (incident case of Type 2 diabetes) differs across another continuous dimension, in your case the range of RBP4 values (ranging from around 20 to 90-ish).

The spline function effectively allows for a non-linear relationship between the risk factor and the outcome (the u-shaped curve). You can see from the figure that those with levels of RBP4 either below or above the reference level of 38 units have an elevated hazard ratio relative to the reference.

But this is about the risk factor -> outcome relationship, rather than the PH assumption. The splined function is still assumed to meet the proportional hazards assumption. It is modelled as a constant effect over time -- that is, low and high RBP4 values are associated with a higher instantaneous risk of incident diabetes, but this relative difference in hazards has been modelled as constant across the follow-up period (which is the proportional hazards assumption).


As a final note: Assessing the proportional hazards assumption is relatively simple for a categorical predictor variable (e.g. using log-log Survival curves, usually presented as stratified curves for a categorical factor). This process is considerably more complex for a continuous covariate (whether modelled with splines or with a linear function), and would really warrant its own question (if you're interested, and which I'd leave for someone else to answer!)

$\endgroup$
  • $\begingroup$ Thank you for your response James. I have read about checking the assumptions of PH for a continuous variable from various sources but Frank Harrel's book on regression modeling techniques afforded the greatest insight. I will try to play around in rms to achieve the same plots for my continuous variable of interest. $\endgroup$ – mindhabits Sep 9 '19 at 4:27
  • $\begingroup$ #1. You're welcome -- I think the one tricky bit in figure interpretation is that the visualisation doesn't particularly highlight the "low information" zones at either end of the continuous dimension (where the linear restriction comes into play) -- the information on sample size and hence precision is only really reflected in the confidence band. (cont.) $\endgroup$ – James Stanley Sep 10 '19 at 0:15
  • $\begingroup$ #2. So it is helpful to contextualise the image with e.g. a summary of the underlying distribution, which would help with thinking about whether the right hand side is particularly well known (e.g.HR for people with an RBP4 of 80+). I suspect these are what the vertical lines are under the x-axis in your example figure (perhaps interquartile range) $\endgroup$ – James Stanley Sep 10 '19 at 0:16

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.