npsimu {NPCox} | R Documentation |
An example of data generation for nonparametric PH model.
npsimu(n, cenpara = NULL)
n |
The number of sample size, which can be self-determined. |
cenpara |
Censoring parameter, which is supposed to be positive, for adjustment of censoring rate. |
This is some description of this function.
'npsimu' is designed for PH model with time-varying coefficients, h(t) = h0(t)exp(b(t)'Z), generating the covariates, observed time and censoring indicator.
a list that contain covariates, observed time and censoring indicator.
data = npsimu(200)