ematrix.nhm: Compute the misclassification probability matrix from a...

View source: R/utils.R

ematrix.nhmR Documentation

Compute the misclassification probability matrix from a fitted nhm model

Description

Outputs the matrix of misclasification probabilities in a misclassification type hidden Markov multi-state model fitted using nhm.

Usage

ematrix.nhm(object, covvalue=NULL)

Arguments

object

Fitted model object produced using nhm.

covvalue

Optional vector of covariate vectors (should be given in the order specified in the covariate option in nhm). If omitted the function will use the mean values of the covariates.

Details

The emat_nhm function used to fit the model is called to obtain the values of the misclassification probabilities at the supplied times for the supplied covariate value.

Value

Returns a list containing a matrix of misclassification probabilities and a matrix of corresponding standard errors computed using the delta method.

Author(s)

Andrew Titman a.titman@lancaster.ac.uk

See Also

nhm, plot.nhm, predict.nhm, qmatrix.nhm


nhm documentation built on Nov. 3, 2023, 1:12 a.m.

Related to ematrix.nhm in nhm...