set_var_state: Set the attribute for the health state

View source: R/1_model_functions.R

set_var_stateR Documentation

Set the attribute for the health state

Description

Set the attribute for the health state

Usage

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

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

packDAMipd documentation built on May 29, 2024, 3:18 a.m.