sim,shared-method | R Documentation |
Simulation method for shared phase-type frailty models
## S4 method for signature 'shared'
sim(x, n = 1000)
x |
An object of class shared. |
n |
An integer of length of realization. |
A realization of independent and identically distributed shared phase-type frailty random vectors.
ph_obj <- phasetype(structure = "coxian")
shared_obj <- shared(ph_obj, bhaz1 = "weibull", bhaz_pars1 = 3, bhaz2 = "weibull", bhaz_pars2 = 2)
sim(shared_obj, n = 100)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.