This function should only take as an x argument
the names of variables already defined in
define_parameters or
define_state,
and not numeric constants.
Usage
discount(x, r, first = FALSE)
Arguments
x
numeric. A quantity to discount.
r
discount rate.
first
logical. Should the discouting start
at the first value ?