Path generation for 'MultistateModelFit'
generate_paths.RdGenerates paths for each subject in the data, starting from the state that the subject is at the given start time.
Arguments
- fit
A
MultistateModelFitobject- oos
Out-of-sample mode? If
FALSE, the possible subject-specific fitted parameters are used. IfTRUE, acting as if the subjects are new.- t_start
Start time. A single value or a vector with length equal to number of subjects.
- t_max
Max time. If
NULL, the max time of the model is used.- n_rep
Number of repeats per draw.
- data
A
JointDataobject. IfNULL, the data used to fit the model is used.
Value
A PathData object.