Skip to contents

sample-averaged transition probs using a fixed beta vector

Usage

.trans.prob.sampleavg(modelobj, betavec_byblock, covdata_byid, extendtime)

Arguments

modelobj

A pandista model object

betavec_byblock

A list of beta coefficient vectors, one for each block. If NULL, will use the estimated coefficients contained in modelobj

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.