Description Usage Arguments Details Author(s)
This function executes two checks and issues one warning.
1 | .check_shock_consistency(shock, periods = periods)
|
shock |
A sfcr_shock object |
First, it checks that the start of the shock is not negative and that the end of the shock is not bigger than the number of periods in the scenario.
Secondly, it checks for consistency on the length of the shocks added to the scenario. Only two types of exogenous variables are allowed:
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.
João Macalós
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.