resamples transition probs for a single group
dot-onegroup.resample.trans.prob.Rdresamples transition probs for a single group
Usage
.onegroup.resample.trans.prob(
modelobj,
covdata_byid,
extendtime,
method,
n.samples,
sampled_betas
)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'.
- n.samples
Integer; The number of resamples to take.
- sampled_betas
List; per block number, each list element contains array of sampled beta coefficients