assign_socioeconomic_scenario: Assign country-level socioeconomic realization to each...

View source: R/model-downscale.R

assign_socioeconomic_scenarioR Documentation

Assign country-level socioeconomic realization to each model+scenario

Description

Takes in list of model output data from prepare_preprocessed_data and returns a list of model- specific dataframes mapping model scenarios to named nation-level socioeconomic realizations. Default behavior is to compute these assignments by minimizing sum of squared errors in future GDP ratios by model region and time period.

Usage

assign_socioeconomic_scenario(
  model_data_list,
  country_region_map_list,
  socio_assign_method = "SSE",
  SSE_variable = "PPP-GDP",
  socio_assignment_folder = NA,
  ...
)

Arguments

model_data_list

list of data tables of model-specific pre-processed, prepared data

country_region_map_list

list of data tables of model-specific country-to-region mappings

socio_assign_method

method used for assigning scenarios. SSE: default behavior; minimize sum of squared errors in future ratios of variable indicated, by year and model region. exogenous: use exogenously provided assignments between model+scenario and nation-level socioeconomic realization for downscaling model output. If this method is selected and no model data folder is provided, a single default realization will be used for all models and scenarios.

SSE_variable

variable to use in determining the socioeconomic assignment using the SSE method; can be Population or PPP-GDP

socio_assignment_folder

character string indicating the folder where the model data are located, in which to find exogenously specified assignments from model+scenario to socioeonomic realization. They are stored as scenario_folder/model/scenarios.yaml

Details

Returns a list of dataframes where each model is an element. Data frames assign model's scenarios to a country-level socioeconomics file.


transportenergy/item_mip_data_processing documentation built on July 6, 2023, 7:51 p.m.