meanfinal_fmixmsm {flexsurv} | R Documentation |
Mean time to final state in a mixture multi-state model
Description
Calculate the mean time from the start of the process to a final (or "absorbing") state in a mixture multi-state model. Models with cycles are not supported.
Usage
meanfinal_fmixmsm(x, newdata = NULL, final = FALSE, B = NULL)
Arguments
x |
Object returned by |
newdata |
Data frame or list of covariate values. If omitted for a model with covariates, a default is used, defined by all combinations of factors if the only covariates in the model are factors, or all covariate values of zero if there are any non-factor covariates in the model. |
final |
If |
B |
Number of simulations to use to compute 95% confidence intervals,
based on the asymptotic multivariate normal distribution of the basic
parameter estimates. If |
Value
A data frame of mean times to absorption, by covariate values and pathway (or by final state)