The goal of survParamSim is to perform survival simulation with parametric survival model generated from ‘survreg’ function in ‘survival’ package. In each simulation, coefficients are resampled from variance-covariance matrix of parameter estimates, in order to capture uncertainty in model parameters.

Installation

You can install the package from GitHub using devtools.

install.packages("devtools")
devtools::install_git("https://github.com/yoshidk6/survParamSim")

Example

This GitHub pages contains function references and vignette. The example below is a sneak peek of example outputs.

First, run survreg to fit parametric survival model:

Next, run parametric bootstrap simulation:

Calculate survival curves with prediction intervals:

Calculate hazard ratios with prediction intervals: