phasemeans.msm {msm} | R Documentation |
Parameters of phase-type models in mixture form
Description
Parameters of fitted two-phase models, in mixture model parameterisation.
Usage
phasemeans.msm(
x,
covariates = "mean",
ci = c("none", "normal", "bootstrap"),
cl = 0.95,
B = 1000,
cores = NULL
)
Arguments
x |
A fitted multi-state model, as returned by |
covariates |
Covariate values, see |
ci |
If |
cl |
Width of the symmetric confidence interval, relative to 1. |
B |
Number of bootstrap replicates, or number of normal simulations from the distribution of the MLEs. |
cores |
Number of cores to use for bootstrapping using parallel
processing. See |
Value
Matrix with one row for each state that has a two-phase
distribution, and three columns: the short-stay mean, long-stay mean and
long-stay probability. These are functions of the transition intensities of
the expanded hidden Markov model, defined in d2phase
.
Author(s)
C. H. Jackson chris.jackson@mrc-bsu.cam.ac.uk