Learn R Programming

icmstate (version 0.2.0)

transprob.msm: 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 msm
transprob(object, predt, times, ...)

# S3 method for npmsm transprob(object, ...)

# S3 method for msfit transprob(object, ...)

transprob(object, ...)

Value

A probtrans object containing the estimated transition probabilities.

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 is chosen.

times

A vector of times at which the transition probabilities should be determined.

...

Further arguments to probtrans

Details

Can be used for objects of class 'npmsm', 'msm' and 'msfit'