Retrieve Initial Parameter Vectors for Likelihood Maximization
Source:R/estimateParams.R
getInit.Rd
Retrieve Initial Parameter Vectors for Likelihood Maximization
Usage
getInit(transition)
# S3 method for class 'ExponentialTransition'
getInit(transition)
# S3 method for class 'WeibullTransition'
getInit(transition)
Arguments
- transition
(
ExponentialTransition
orWeibullTransition
)
containing the initial parameters. Seeexponential_transition()
orweibull_transition()
for details.
Methods (by class)
getInit(ExponentialTransition)
: for the Exponential Transition ModelgetInit(WeibullTransition)
: for the Weibull Transition Model
Examples
transition <- exponential_transition(h01 = 1.2, h02 = 1.5, h12 = 1.6)
getInit(transition)
#> [1] 1.2 1.5 1.6
transition <- exponential_transition(h01 = 1.2, h02 = 1.5, h12 = 1.6)
getInit(transition)
#> [1] 1.2 1.5 1.6
transition <- weibull_transition(h01 = 1.2, h02 = 1.5, h12 = 1.6, p01 = 2, p02 = 2.5, p12 = 3)
getInit(transition)
#> [1] 1.2 1.5 1.6 2.0 2.5 3.0