prediction

Estimating a hazard ratio in the presence of effect modification

After fitting a flexible parametric model, we estimate and plot the hazard ratio for a covariate that is modified by another covariate.

Predicting in a new data set with merlin

Illustrates how to fit a model using patient data and then predict in a second dataset specifically constructed to contain only the covariates for which we wish to predict. Age is modelled using a restricted cubic spline.

Out-of-sample predictions and model-based age-standardistion with stpm2

Creating a second dataset in which to make predictions and an approach to model-based direct age-standardisation.

Predicting in a new data set with stpm2

Illustrates how to fit a model using patient data and then predict in a second dataset specifically constructed to contain only the covariates for which we wish to predict. Age is modelled using a restricted cubic spline.