sfcr_shock: Create shock(s) to add to a 'sfcr_scenario()'.

Description Usage Arguments Author(s) Examples

View source: R/sfcr_shock.R

Description

Create shock(s) to add to a sfcr_scenario().

Usage

1
sfcr_shock(variables, start, end)

Arguments

variables

A sfcr_set() with formula(e) containing the name of the variable(s) that will be shocked on the left-hand side and their new values on the right- hand side.

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.

Author(s)

João Macalós, joaomacalos@gmail.com

Examples

1
2
3
4
5
6
7
8
9
sfcr_shock(
 variables = sfcr_set(G_d ~ 30, W ~ 1.5),
 start = 5,
 end = 66)

sfcr_shock(
 variables = sfcr_set(G_d ~ seq(30, 40, length.out=62)),
 start = 5,
 end = 66)

sfcr documentation built on Oct. 11, 2021, 9:09 a.m.