shared | R Documentation |
Constructor function for shared phase-type frailty models
shared(
ph = NULL,
bhaz1 = NULL,
bhaz_pars1 = NULL,
bhaz2 = NULL,
bhaz_pars2 = NULL,
B = numeric(0),
alpha = NULL,
S = NULL,
structure = NULL,
dimension = 3
)
ph |
An object of class phasetype. |
bhaz1 |
Baseline hazard function of first marginal. |
bhaz_pars1 |
The parameters of the baseline hazard function of first marginal. |
bhaz2 |
Baseline hazard function of first marginal. |
bhaz_pars2 |
The parameters of the baseline hazard function of first marginal. |
B |
Regression parameters. |
alpha |
A probability vector. |
S |
A sub-intensity matrix. |
structure |
A valid phase-type structure. |
dimension |
The dimension of the phase-type structure (if provided). |
An object of class shared.
obj <- phasetype(structure = "coxian")
shared(obj, bhaz1 = "weibull", bhaz_pars1 = 3, bhaz2 = "weibull", bhaz_pars2 = 2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.