define_state_transition: Define a Markov Model State Transition

View source: R/states_define.R View source: R/define_transition.R

define_state_transitionR Documentation

Define a Markov Model State Transition

Description

Define the values characterising a Markov Model trasition into, out of, or between states.

Usage

define_state_transition(from = NA, to = NA, ...)

define_state_transition_(to, from, .dots)

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

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

Arguments

from

Character vector of names of from-states for which value is applied. When not given, value is applied to any from state.

to

Character vector of names of to-states for which value is applied. When not given, value is applied to any to state.

...

Name-value pairs of expressions defining state values.

.dots

Used to work around non-standard evaluation.

.OBJECT

An object of class state_transition.

Details

As with define_parameters(), state transition 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_transition (actually a named list of lazy expressions).


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