set_var_state: Set the attribute for the health state

Description Usage Arguments Details Value Examples

View source: R/1_model_functions.R

Description

Set the attribute for the health state

Usage

1
set_var_state(state, var, new_value)

Arguments

state

object of class health state

var

attribute of the health state

new_value

new value to be assigned

Details

After checking the given state is a health state the value of the variable is set if the value is not numeric, it is being parsed to form an expression

Value

modified health state

Examples

1
set_var_state(health_state("IT", 100, 0.4, 0, FALSE), "cost", 1)

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