.check_external_consistency {sfcr} | R Documentation |
Check shocks for length consistency and warn about risks of using exogenous series
Description
This function makes two checks:
Usage
.check_external_consistency(external, periods = periods)
Arguments
external |
An .eq_as_tb() tibble with external variables. |
periods |
The periods of the baseline model. |
Details
The exogenous variable is a constant that is repeated over time;
The exogenous variable has exactly the same length as the shock.
Furthermore, it throws a warning that using exogenous series in a shock can lead to unexpected behavior if the length of the shock is not the same as the periods in the scenario.
Author(s)
João Macalós
[Package sfcr version 0.2.1 Index]