powered by
+
twig
Adds layers to the twig object. If a states layer is added, the twig object is treated as a Markov model.
# S3 method for twig_class +(twig_obj, layer)
The modified twig object with the new layer added.
A twig object created by the twig function.
A layer to be added to the twig object.
This method allows layers to be added to a twig object using the + operator.
twig_obj <- twig() + decisions(names = c(StandardOfCare, StrategyA, StrategyB, StrategyAB))
Run the code above in your browser using DataLab