calc_scenario_prices.Rd
Function generates prices for baseline and late and sudden shock scenario.
Price for baseline scenario correspond to prices of baseline_scenario
.
Prices for the late sudden scenario also correspond to baseline_scenario
until the year_of_shock
. From then on they linearly approach the price
level of the shock_scenario
during the duration_of_shock
.
calc_scenario_prices(
price_data,
baseline_scenario,
target_scenario,
transition_scenario,
start_year
)
A tibble holding price data.
String holding name of the baseline scenario.
String holding name of the target scenario.
Tibble with 1 row holding at least variables
year_of_shock
and duration_of_shock
.
Start_year of analysis
A tibble holding late_and_sudden_prices