by_strategy: Define a formula whose value is strategy-dependent

View source: R/dispatch_strategy.R

by_strategyR Documentation

Define a formula whose value is strategy-dependent

Description

Returns different values depending on the strategy.

Usage

by_strategy(.strategy, ...)

Arguments

.strategy

Optional strategy name. If not specified it is implicitly added.

...

Values of the parameter named depending on the strategy.

Value

A vector of values.

Examples


define_parameters(
  val = 456,
  x = by_strategy(
    strat_1 = 1234,
    strat_2 = 9876,
    strat_3 = val * 2 + markov_cycle
  )
)

PolicyAnalysisInc/heRoMod documentation built on March 23, 2024, 4:29 p.m.