- Introduced by
- Royston, P. & Parmar, M.K.B.
- Year
- 2002
- Type
- Parametric survival regression model
What does it do?
The Royston-Parmar model, introduced by Royston and Parmar in 2002, is a parametric survival regression model in which the log-cumulative hazard is represented by a spline in log time rather than by a fixed distributional form such as the Weibull or Gompertz.
Its baseline shape is therefore estimated from the data, while the model still yields an explicit survival function. The original paper develops proportional-hazards and proportional-odds versions, with covariate effects entering linearly on the chosen scale.
The intuition behind the method
Classical parametric models such as the Weibull fix the shape of the hazard in advance. Many clinical datasets show hazards that rise and then fall, or change over follow-up, and a single standard shape may not describe them. The Royston-Parmar model lets a smooth spline, whose flexibility is set by its degrees of freedom, follow the shape suggested by the data. Covariate effects are still added as a simple linear term on the same scale, so the model keeps an explicit, parametric description of survival. A model with one degree of freedom reduces to a Weibull-type baseline, which gives a direct link to the classical model.
History
Royston and Parmar introduced the flexible parametric approach in 2002 as an extension of the Weibull and log-logistic models, in which natural cubic splines smooth the baseline log-cumulative-hazard and log-cumulative-odds functions. The paper also considered non-proportional covariate effects and proposed a test of the appropriateness of the scale chosen for covariate effects, and it applied the models to two data sets in cancer. The software implementation known by the alias stpm2 is a later development and is not described in the 2002 paper.
When to use it
Use the Royston-Parmar model for right-censored time-to-event data when the number of events is sufficient to estimate the spline, and when the hazard may be non-monotone or differ clearly from a Weibull or exponential shape. No fixed minimum number of events is given here: the spline needs enough events to support its degrees of freedom, and with few events the degrees of freedom should be reduced toward one. It is a good choice when smooth absolute survival estimates, survival at specific time points, or hazard ratios that change over follow-up are the target of analysis. Covariates may be continuous or categorical. Do not use it when events are very few; in that case reduce the degrees of freedom toward one or choose a simpler parametric or semi-parametric model. The model assumes non-informative censoring: subjects who leave follow-up are assumed to have the same subsequent risk as those who remain.
Limitations and considerations
- Estimation requires enough events to support the spline; with few events, the degrees of freedom must be kept small, and at one degree of freedom the baseline reduces to a Weibull-type form.
- Results depend on the chosen degrees of freedom and knot positions, so sensitivity analyses across neighbouring specifications are needed.
- Because the spline is only a flexible description of the observed data, predictions far beyond the follow-up period depend on the tail behaviour of the chosen spline and link scale and should be reviewed against external knowledge.
- The model is more involved to implement and interpret than the Cox model, and it is not available in every mainstream statistical package.
Source conditions do not replace independent scientific review or validation by an analysis engine.
Strengths
- The spline baseline can represent hazards that rise, fall, or change shape over follow-up, which a single Weibull or exponential form cannot.
- Survival and hazard are given by an explicit formula on the log-cumulative-hazard scale, so absolute survival at chosen time points can be computed directly.
- Covariate effects can be allowed to vary with time by interacting them with the spline basis, which addresses non-proportional hazards within a parametric framework.
- The same spline framework supports more than one link scale, including proportional hazards and proportional odds, so the fitted scale can be compared by fit statistics.
Applications
- Cancer survival analysis, where the hazard may rise after diagnosis and then change, so that a single standard parametric shape may fit poorly.
- Modelling covariate effects that change over follow-up, using time-dependent hazard ratios (non-proportional hazards) within a parametric model.
- Clinical prediction work that needs smooth absolute survival estimates at chosen time points.
- Health-economic models that need survival beyond the observed follow-up. Extrapolation is highly sensitive to the tail behaviour of the chosen spline and link scale, so predictions should be tested with sensitivity analyses and checked against external data before use in decision models.
How it works
How it works
The log-cumulative hazard, ln H(t), is modelled as a spline in ln t. The number of spline parameters (degrees of freedom) is chosen before or during fitting, and the knot positions must be reported. The spline is linear in the tails, which limits extreme curvature where few events occur. The fitted hazard is the derivative of H(t) with respect to t, so it must be checked to be non-negative over the follow-up period. A spline on ln H does not guarantee this by itself.
Formula
\ln H(t) = s\!\left(\ln t;\, \boldsymbol{\gamma},\, \mathbf{k}\right)Covariate effects are added as a linear term on the log-cumulative-hazard scale. Under the proportional-hazards parameterisation, each coefficient is a log-hazard-ratio, interpreted in the same way as a Cox regression coefficient. The proportional-odds link applies the same spline idea to the log-cumulative-odds scale and changes the interpretation of the coefficients. Choice of link is usually guided by fit statistics such as AIC together with subject-matter considerations.
Formula
\ln H(t \mid \mathbf{x}) = s\!\left(\ln t;\, \boldsymbol{\gamma},\, \mathbf{k}\right) + \mathbf{x}^{\top}\boldsymbol{\beta}After the spline and covariate coefficients are estimated by maximum likelihood, the survival probability at time t for covariate vector x is S(t|x) = exp(-exp(s(ln t) + x'beta)). Because the baseline is fully parameterised, survival and hazard can be evaluated at any time point without a separate smoothing step. Time-dependent covariate effects (non-proportional hazards) can be included by interacting the covariates with the spline basis functions.
Formula
S(t \mid \mathbf{x}) = \exp\!\left[-\exp\!\left(s(\ln t) + \mathbf{x}^{\top}\boldsymbol{\beta}\right)\right]Common pitfalls
- Choosing a large number of degrees of freedom relative to the number of events, which can produce unstable hazard and survival curves.
- Reporting a single specification without comparing neighbouring degrees of freedom or the alternative link scales.
- Reading the coefficients as hazard ratios without confirming that the proportional-hazards link was used; under other links the same coefficients have different meanings.
- Fitting the model to a small number of events without reducing the degrees of freedom toward one.
- Failing to report the knot positions, degrees of freedom, and AIC alongside the estimates, which makes the analysis hard to reproduce.
Frequently asked questions
How do I choose the number of degrees of freedom?
Compare a small grid of degrees of freedom by AIC, starting from a simple specification and increasing it only while the fit improves meaningfully. The appropriate upper limit depends on the number of events: with few events, keep the degrees of freedom small and move toward one. Report the knot positions and the degrees of freedom chosen, and show that the main conclusions hold for neighbouring specifications.
How does this model differ from Cox regression?
Cox regression leaves the baseline hazard unspecified, so it does not directly give absolute survival at every time point. The Royston-Parmar model fully parameterises the baseline with a spline, which gives explicit survival and hazard functions and allows predictions at times beyond the observed follow-up. The cost is that the spline degrees of freedom and link scale must be chosen and checked.
Can the model handle non-proportional hazards?
Yes. Interacting each covariate with the spline basis functions allows its log-hazard-ratio to change over follow-up. The original paper introduces extensions that allow non-proportional effects of some or all covariates.
Which link function should I use?
The proportional-hazards link is the more familiar choice, because its coefficients are read as log-hazard-ratios in the same way as Cox coefficients. The proportional-odds link works on the log-cumulative-odds scale and gives different coefficient interpretations. The original paper also proposes a test of whether the chosen scale for covariate effects is appropriate. Choose the link by comparing fit and by the interpretation that suits the research question.
Related methods
Sources
Royston, P. & Parmar, M.K.B. (2002). Flexible Parametric Proportional-Hazards and Proportional-Odds Models for Censored Survival Data, with Application to Prognostic Modelling and Estimation of Treatment Effects. Statistics in Medicine, 21(15), 2175–2197.
Open DOI reference