Developer documentation: misclassification model structure object
Source:R/internals_doc.R
emodel.object.Rd
A list giving information about the misclassifications assumed in a
multi-state model fitted with the ematrix
argument of
msm
. Returned in a fitted msm
model object.
This information is converted internally to a hmodel
object (see
hmodel.object
) for use in likelihood computations.
Value
- nstates
Number of states (same as
qmodel$nstates
).- npars
Number of allowed misclassifications, equal to
sum(imatrix)
.- imatrix
Indicator matrix for allowed misclassifications. This has \((r,s)\) entry 1 if misclassification of true state \(r\) as observed state \(s\) is possible. diagonal entries are arbitrarily set to 0.
- ematrix
Matrix of initial values for the misclassification probabilities, supplied as the
ematrix
argument ofmsm
.- inits
Vector of these initial values, reading across rows of
qmatrix
and excluding the diagonal and disallowed transitions.- constr
Indicators for equality constraints on baseline misclassification probabilities, taken from the
econstraint
argument tomsm
, and mapped if necessary to the set (1,2,3,...)- ndpars
Number of distinct misclassification probabilities, after applying equality constraints.
- nipars
Number of initial state occupancy probabilities being estimated. This is zero if
est.initprobs=FALSE
, otherwise equal to the number of states.- initprobs
Initial state occupancy probabilities, as supplied to
msm
(initial values before estimation, ifest.initprobs=TRUE
.)- est.initprobs
Are initial state occupancy probabilities estimated (
TRUE
orFALSE
), as supplied in theest.initprobs
argument ofmsm
.