health_state: Definition of health state class or health state constructor

Description Usage Arguments Details Value Examples

View source: R/1_model_functions.R

Description

Definition of health state class or health state constructor

Usage

1
health_state(name, cost, utility, state_time = 0, absorb = FALSE)

Arguments

name

name of the health state

cost

value or expression that represents cost of the health state

utility

value or expression that represents utility of the health state

state_time

time denoting how long in the state

absorb

boolean indicating health state absorbing or not

Details

Initialising the name, cost, utility and time spent for the health state name is the name of the health state cost/utility can be defined as characters e.g. "cost_A" if they are characters, the value is assigned after parsing the text. state_time is integer and absorb is boolean

Value

value of the state

Examples

1
2
st <- health_state("IT", 100, 0.4, 0, FALSE)
st <- health_state("IT", "cost_A", 0.4, 0, FALSE)

packDAMipd documentation built on March 3, 2021, 5:07 p.m.