Learn R Programming

packDAMipd (version 1.1.0)

get_var_state: Get the attribute for the health state

Description

Get the attribute for the health state

Usage

get_var_state(state, var)

Value

modified health state

Arguments

state

object of class health state

var

attribute of the health state

Details

After checking the given state is a health state and given variable is defined in the health state, the value of the variable is returned

Examples

Run this code
get_var_state(health_state("IT", 100, 0.4, 0, FALSE), "cost")

Run the code above in your browser using DataLab