sim,frailty-method | R Documentation |
Simulation method for univariate phase type frailty models
## S4 method for signature 'frailty'
sim(x, n = 1000)
x |
An object of class frailty. |
n |
An integer of length of realization. |
A realization of independent and identically distributed phase-type frailty variables.
obj <- frailty(phasetype(structure = "general"), bhaz = "weibull", bhaz_pars = 2)
sim(obj, n = 100)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.