Create shock(s) to add to a sfcr_scenario()
.
sfcr_shock(variables, start, end)
variables | A It is possible to add exogenous series a shock instead of constant variables. However, the length of such series must be exactly the same as the period of the shock (i.e., the difference between start and end). |
---|---|
start | An integer indicating the period when the shock takes place. |
end | An integer indicating the period when the shock ends. |
João Macalós, joaomacalos@gmail.com
#> $variables #> [[1]] #> G_d ~ 30 #> <environment: 0xaba7ba0> #> #> [[2]] #> W ~ 1.5 #> <environment: 0xaba7ba0> #> #> attr(,"class") #> [1] "sfcr_set" "list" #> #> $start #> [1] 5 #> #> $end #> [1] 66 #> #> attr(,"class") #> [1] "sfcr_shock" "list"#> $variables #> [[1]] #> G_d ~ seq(30, 40, length.out = 62) #> <environment: 0xaba7ba0> #> #> attr(,"class") #> [1] "sfcr_set" "list" #> #> $start #> [1] 5 #> #> $end #> [1] 66 #> #> attr(,"class") #> [1] "sfcr_shock" "list"