Skip to contents

Adds layers to the twig object. If a states layer is added, the twig object is treated as a Markov model.

Usage

# S3 method for class 'twig_class'
twig_obj + layer

Arguments

twig_obj

A twig object created by the twig function.

layer

A layer to be added to the twig object.

Value

The modified twig object with the new layer added.

Details

This method allows layers to be added to a twig object using the + operator.

Examples

twig_obj <- twig() + 
  decisions(names = c(StandardOfCare, StrategyA, StrategyB, StrategyAB))