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 |
( |
t |
( |
trans |
( |
Value
The survival probability for the specified transition and time.
Methods (by class)
-
survTrans(ExponentialTransition)
: for the Exponential Transition Model -
survTrans(WeibullTransition)
: for the Weibull Transition Model
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]