Learn R Programming

msm (version 0.5.2)

ematrix.msm: Misclassification probability matrix

Description

Extract the estimated misclassification probability matrix, and corresponding confidence intervals, from a fitted multi-state model at a given set of covariate values.

Usage

ematrix.msm(x, covariates="mean", cl=0.95)

Arguments

x
A fitted multi-state model, as returned by msm
covariates
The covariate values for which to estimate the misclassification probability matrix. This can either be: the string "mean", denoting the means of the covariates in the data (this is the default), the number 0, indicating
cl
Width of the symmetric confidence interval to present. Defaults to 0.95.

Value

  • A list with components:
  • estimateEstimated misclassification probability matrix.
  • SECorresponding approximate standard errors.
  • LLower confidence limits.
  • UUpper confidence limits.
  • The default print method for objects returned by ematrix.msm presents estimates and confidence limits. To present estimates and standard errors, do something like

    ematrix.msm(x)[c("estimates","SE")]

Details

Misclassification probabilities and covariate effects are estimated on the logit scale by msm. A covariance matrix is estimated from the Hessian of the maximised log-likelihood. From these, the delta method is used to obtain standard errors of the probabilities on the natural scale at arbitrary covariate values. Confidence intervals are estimated by assuming normality on the logit scale.

See Also

qmatrix.msm