| Transition | R Documentation |
An R6 class representing a transition in a semi-Markov model.
A specialism of class Arrow which is used in a semi-Markov
model to represent a transition between two MarkovStates. The
transition is optionally associated with a cost. The transition probability
is associated with the model (SemiMarkovModel) rather than the
transition.
rdecision::Edge -> rdecision::Arrow -> Transition
new()Create an object of type MarkovTransition.
Transition$new(source_state, target_state, cost = 0, label = "")
source_stateMarkovState from which the transition starts.
target_stateMarkovState to which the transition ends.
costCost associated with the transition.
labelCharacter string containing a label for the transition (the name of the event).
A new Transition object.
modvars()Find all the model variables.
Transition$modvars()
Find variables of type ModVar that have been
specified as values associated with this MarkovTransition.
Includes operands of these ModVars, if they are expressions.
A list of ModVars.
set_cost()Set the cost associated with the transition.
Transition$set_cost(c = 0)
cCost associated with the transition.
Updated Transition object.
cost()Return the cost associated with traversing the edge.
Transition$cost()
Cost.
clone()The objects of this class are cloneable with this method.
Transition$clone(deep = FALSE)
deepWhether to make a deep clone.
Andrew J. Sims andrew.sims@newcastle.ac.uk
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.