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