sojourn.msm {msm}R Documentation

Mean sojourn times from a multi-state model

Description

Estimate the mean sojourn times in the transient states of a multi-state model and their standard errors.

Usage

sojourn.msm(x, covariates="mean")

Arguments

x A fitted multi-state model, as returned by msm
covariates The covariate values at which to estimate the mean sojourn times. This can either be:

the string "mean", denoting the means of the covariates in the data (this is the default),

the number 0, indicating that all the covariates should be set to zero,

a list of values, with optional names. For example,
list(60, 1), where the order of the list follows the order of the covariates originally given in the model formula, or a named list, e.g.
list (age = 60, sex = 1)

Details

The mean sojourn time in a transient state r is estimated by - 1 / q_{rr}, where q_{rr} is the rth entry on the diagonal of the estimated transition intensity matrix. Calls deltamethod to find approximate standard errors.

Value

A list with components:

estimate Estimated mean sojourn times in the transient states.
se Corresponding standard errors.

Author(s)

C. H. Jackson chris.jackson@imperial.ac.uk

See Also

msm, qmatrix.msm, deltamethod


[Package Contents]