Tidy the parameter estimates from an msm model
Arguments
- x
Object returned by
msm, representing a fitted multi-state model.- ...
Other arguments (currently unused).
Value
A "tibble", with one row for each parameter and the following columns describing the parameter.
parclass: Class of parameters:intens(transition intensities),hr(hazard ratios representing effects of covariates on intensities), and their transformed versionslogintens(log intensities) andloghr(log hazard ratios).For "misclassification" models fitted with the
ematrixargument tomsm, other classes of parameters includemisc(misclassification probabilities),logitmisc(misclassification log odds),or_miscandlogor_misc(effects of covariates on misclassification probabilities, as odds ratios or log odds ratios, with the first state as the reference category).For hidden Markov models fitted with the
hmodelargument tomsm, the parameter class calledhmmcomprises the parameters of the distributions of the outcome conditionally on the hidden state. Covariates on the location parameter of these distributions are included in classhmmcov. If initial state occupancy probabilities are estimated, these are included in classinitp(orinitlogoddsfor the log odds transforms of these), and any covariates on these probabilities are included in classinitpcov.state: Starting state of the transition for transition intensities, and true state for misclassification probabilities or hidden Markov model parameters.tostate: Ending state of the transition for transition intensities, and observed state for misclassification probabilitiesterm: Name of the covariate for covariate effects, or "baseline" for the baseline intensity or analogous parameter value. Note that the "baseline" parameters are the parameters with covariates set to their mean values in the data (stored in e.g.x$qcmodel$covmeans), unlessmsmwas called withcenter=FALSE.estimate,std.error,conf.low,conf.high: Parameter estimate, standard error, and lower and upper confidence limits.statistic,p.value: For covariate effects, the Z-test statistic and p-value for a test of the null hypothesis that the covariate effect is zero, based on the estimate and standard error.