Add a variable that will be available for comparisons with observed data that is created by processing an existing variable in the simulation history by lagged differencing.
add_lag_diff(model, var_pattern, delay_n = 1)
add_lag_diff_uneven(model, input_names, output_names, lag_dates)
flexmodel
object
regular expression used to identify variables for
differencing. See avail_for_lag
for a function that will
return the names of all variables that are available for differencing.
Delay in days for determining the lag in the differences.
names of variables to be differenced
names of the result of differencing
Dates between which differences should be taken.