transprob.msm {icmstate} | R Documentation |
Wrapper for the probtrans
function
Description
For 'msm'
objects: determine transition probabilities
(as in probtrans
) from an
msm
object. Currently only direction = "forward" is supported.
For 'npmsm'
objects: Determine transition probabilities for an 'npmsm'
object
using the probtrans
function.
For 'msfit'
objects: Wrapper for probtrans
Usage
## S3 method for class 'msm'
transprob(object, predt, times, ...)
## S3 method for class 'npmsm'
transprob(object, ...)
## S3 method for class 'msfit'
transprob(object, ...)
transprob(object, ...)
Arguments
object |
Object of compatible class |
predt |
A positive number indicating the prediction time. This is
the time at which the prediction is made. If missing, smallest time of
|
times |
A vector of times at which the transition probabilities should be determined. |
... |
Further arguments to |
Details
Can be used for objects of class 'npmsm', 'msm' and 'msfit'
Value
A probtrans
object containing the estimated transition probabilities.
[Package icmstate version 0.1.1 Index]