tPx: Transition Probabilities

Description Usage Arguments Value

Description

Probability of transitioning from one state to another within t years. Approximation based on the Kolmogorov forward equations.

Usage

1
2
tPx(object, t = 0, x = 0, h = 1/12, all = FALSE, joint = FALSE,
  y = 0)

Arguments

object

An object of class msm

t

The number of years forward

x

The age of the individual.

h

The time step. By default 1/12 is used for the approximation

all

Indicates whether the probabilities at each time point should be returned or whether only the final probability matrix should be returned (at time t)

joint

Indicate whether there are two lives, x and y that should should be used in the transition matrix functions

y

The age of the second individual if the model is joint

Value

A matrix of transition probabilities


nathanesau/MSM documentation built on May 23, 2019, 12:18 p.m.