survTrans {simIDM}R Documentation

Survival Function for Different Transition Models

Description

Survival Function for Different Transition Models

Usage

survTrans(transition, t, trans)

## S3 method for class 'ExponentialTransition'
survTrans(transition, t, trans)

## S3 method for class 'WeibullTransition'
survTrans(transition, t, trans)

Arguments

transition

(ExponentialTransition or WeibullTransition)
see exponential_transition() or weibull_transition() for details.

t

(numeric)
time at which survival probability is to be computed.

trans

(integer)
index specifying the transition type.

Value

The survival probability for the specified transition and time.

Methods (by class)

Examples

transition <- exponential_transition(h01 = 1.2, h02 = 1.5, h12 = 1.6)
survTrans(transition, 0.4, 2)
transition <- exponential_transition(h01 = 1.2, h02 = 1.5, h12 = 1.6)
survTrans(transition, 0.4, 2)
transition <- weibull_transition(h01 = 1.2, h02 = 1.5, h12 = 1.6, p01 = 2, p02 = 2.5, p12 = 3)
survTrans(transition, 0.4, 2)

[Package simIDM version 0.1.0 Index]