mean_flexsurvmix: Mean times to events from a flexsurvmix model

View source: R/summary.flexsurvmix.R

mean_flexsurvmixR Documentation

Mean times to events from a flexsurvmix model


This returns the mean of each event-specific parametric time-to-event distribution in the mixture model, which is the mean time to event conditionally on that event being the one that happens.


mean_flexsurvmix(x, newdata = NULL, B = NULL)



Fitted model object returned from flexsurvmix.


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.


Number of simulations to use to compute 95% confidence intervals, based on the asymptotic multivariate normal distribution of the basic parameter estimates. If B=NULL then intervals are not computed.


Mean times to next event conditionally on each alternative event, given the specified covariate values.

flexsurv documentation built on Feb. 16, 2023, 5:07 p.m.