define_state: Define a Markov Model State

View source: R/states_define.R

define_stateR Documentation

Define a Markov Model State

Description

Define the values characterising a Markov Model state for 1 cycle.

Usage

define_state(...)

define_state_(.dots)

## S3 method for class 'state'
modify(.OBJECT, ...)

Arguments

...

Name-value pairs of expressions defining state values.

.dots

Used to work around non-standard evaluation.

.OBJECT

An object of class state.

Details

As with define_parameters(), state values are defined sequentially. Later state definition can thus only refer to values defined earlier.

For the modify function, existing values are modified, no new values can be added. Values order matters since only values defined earlier can be referenced in later expressions.

Value

An object of class state (actually a named list of lazy expressions).

Examples

st <- define_state(
  cost = 6453,
  utility = .876
)
st

PolicyAnalysisInc/heRoMod documentation built on March 23, 2024, 4:29 p.m.