npsimu {NPCox} | R Documentation |
Simulation data generation of PH model with time-varying coefficients.
Description
An example of data generation for nonparametric PH model.
Usage
npsimu(n, cenpara = NULL)
Arguments
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. |
Details
This is some description of this function.
'np_simudata' 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.
Value
a list that contain covariates, observed time and censoring indicator.
Examples
data = npsimu(200)
[Package NPCox version 1.2 Index]