View source: R/estimateParams.R
survTrans | R Documentation |
Survival Function for Different Transition Models
survTrans(transition, t, trans)
## S3 method for class 'ExponentialTransition'
survTrans(transition, t, trans)
## S3 method for class 'WeibullTransition'
survTrans(transition, t, trans)
transition |
( |
t |
( |
trans |
( |
The survival probability for the specified transition and time.
survTrans(ExponentialTransition)
: for the Exponential Transition Model
survTrans(WeibullTransition)
: for the Weibull Transition Model
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.