View source: R/states_define.R
define_state | R Documentation |
Define the values characterising a Markov Model state for 1 cycle.
define_state(..., starting_values = define_starting_values())
define_state_(x)
## S3 method for class 'state'
modify(.OBJECT, ...)
... |
Name-value pairs of expressions defining state values. |
starting_values |
Optional starting values defined
with |
x |
Used to work around non-standard evaluation. |
.OBJECT |
An object of class |
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.
An object of class state
(actually a named
list of quosures).
st <- define_state(
cost = 6453,
utility = .876
)
st
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.