Resample transition probabilities
resample.trans.prob.RdResamples transition probabilities from a fitted model, optionally by group, based on the estimated Hessian
Usage
resample.trans.prob(
modelobj,
covdata_byid = NULL,
extendtime = FALSE,
method = "mean",
groupvar = NULL,
n.samples = 100
)Arguments
- modelobj
A pandista model object
- covdata_byid
A list of dataframes; each dataframe is the covariate data for one subject. If NULL, will use the covariate data as contained in modelobj
- extendtime
Logical; If TRUE, extend each subject's covariate data to t.final before any averaging occurs. Extension is done by carrying forward the last observation for each subject.
- method
String; Method to use for averaging. One of 'mean' (default), 'meanbyt', 'sampleavg', or 'single'.
- groupvar
String; Name of a categorical grouping variable. Results will be computed separatedly for each level of the variable, and returned as a list
- n.samples
Integer; The number of resamples to take.