Skip to contents

Retrieve Initial Parameter Vectors for Likelihood Maximization

Usage

getInit(transition)

# S3 method for ExponentialTransition
getInit(transition)

# S3 method for WeibullTransition
getInit(transition)

Arguments

transition

(ExponentialTransition or WeibullTransition)
containing the initial parameters. See exponential_transition() or weibull_transition() for details.

Value

The numeric vector of initial parameters for likelihood maximization.

Methods (by class)

  • getInit(ExponentialTransition): for the Exponential Transition Model

  • getInit(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