getResults {simIDM}R Documentation

Format Results of Parameter Estimation for Different Transition Models

Description

Format Results of Parameter Estimation for Different Transition Models

Usage

getResults(transition, res)

## S3 method for class 'ExponentialTransition'
getResults(transition, res)

## S3 method for class 'WeibullTransition'
getResults(transition, res)

Arguments

transition

(TransitionParameters)
see exponential_transition() or weibull_transition() for details.

res

(numeric vector)
vector of parameter estimates from the likelihood maximization procedure.

Value

Returns a TransitionParameters object with parameter estimates.

Methods (by class)

Examples

results <- c(1.2, 1.5, 1.6)
getResults(exponential_transition(), results)
results <- c(1.2, 1.5, 1.6)
getResults(exponential_transition(), results)
results <- c(1.2, 1.5, 1.6, 2, 2.5, 1)
getResults(weibull_transition(), results)

[Package simIDM version 0.1.0 Index]