initialprob.nhm {nhm}R Documentation

Compute the initial probability vector from a fitted nhm model

Description

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

Usage

initialprob.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 initp_nhm function used to fit the model is called to obtain the values of the initial state vector at the supplied times for the supplied covariate value.

Value

Returns a list containing a vector of initial state probabilities and a corresponding vector of standard errors computed using the delta method.

Author(s)

Andrew Titman a.titman@lancaster.ac.uk

See Also

nhm, ematrix.nhm


[Package nhm version 0.1.1 Index]