See msm::totlos.msm()
for the theory behind the method used to
calculate this. The analytic formula is used, not numerical integration.
Arguments
- draws
Object returned by
msmbayes
.- t
End point of the time interval over which to measure length of stay in each state
- new_data
Data frame with covariate values to predict for
- fromt
Starting point of the time interval, by default 0
- pstart
Vector giving distribution of states at time 0
- discount
Discount rate in continuous time