health_state {packDAMipd} | R Documentation |
Definition of health state class or health state constructor
Description
Definition of health state class or health state constructor
Usage
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
st <- health_state("IT", 100, 0.4, 0, FALSE)
st <- health_state("IT", "cost_A", 0.4, 0, FALSE)
[Package packDAMipd version 1.1.0 Index]