View source: R/states_define.R View source: R/define_transition.R
define_state_transition | R Documentation |
Define the values characterising a Markov Model trasition into, out of, or between states.
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, ...)
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 |
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.
An object of class state_transition
(actually a named
list of lazy
expressions).
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.