Learn R Programming

prodlim (version 1.4.2)

SimSurv: Simulate survival data

Description

Simulate right censored survival data with two covariates X1 and X2, both have effect exp(1) on the hazard of the unobserved event time.

Usage

SimSurv(N, ...)

Arguments

N
sample size
...
do nothing

Value

  • data.frame with simulated data

Details

This function calls survModel, then adds covariates and finally calls sim.lvm.

Examples

Run this code
SimSurv(10)

Run the code above in your browser using DataLab