Description Usage Arguments Details Value Examples
View source: R/1_model_functions.R
Definition of health state class or health state constructor
1 | health_state(name, cost, utility, state_time = 0, absorb = FALSE)
|
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 |
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 of the state
1 2 | st <- health_state("IT", 100, 0.4, 0, FALSE)
st <- health_state("IT", "cost_A", 0.4, 0, FALSE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.