View source: R/5.correlatedph.R
correlated | R Documentation |
Constructor function for correlated phase-type frailty models
correlated(
bivph = NULL,
bhaz1 = NULL,
bhaz_pars1 = NULL,
bhaz2 = NULL,
bhaz_pars2 = NULL,
B = numeric(0),
alpha = NULL,
S11 = NULL,
S12 = NULL,
S22 = NULL,
dimensions = c(3, 3)
)
bivph |
An object of class bivphasetype. |
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. |
S11 |
A sub-intensity matrix. |
S12 |
A matrix. |
S22 |
A sub-intensity matrix. |
dimensions |
The dimension of the bivariate phase-type structure (if provided). |
An object of class correlated.
obj <- bivphasetype(dimensions = c(3, 3))
correlated(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.