transprob: Wrapper for the 'probtrans' function

View source: R/transprob_npmsm.R

transprob.msmR 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 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'

Value

A probtrans object containing the estimated transition probabilities.


icmstate documentation built on April 3, 2025, 8:06 p.m.