Skip to contents

Return raw loan book containing the corporate economy benchmark

Usage

create_benchmark_loanbook(
  data,
  scenario_source,
  start_year,
  region_isos,
  benchmark_region
)

Arguments

data

data frame containing the asset-based company data (ABCD) in PACTA for Banks format.

scenario_source

character vector of length 1. This is used to subset the allowed regions as defined in r2dii.data::region_isos. It is recommended to simply use the scenario_sourc_input used throughout the workflow.

start_year

character vector of length 1. Defines the initial year of the analysis. The company weights will be picked based on the production capacity in the start_year.

region_isos

data frame containing the regional mapping for scenarios to country iso codes, following the format of r2dii.data::region_isos

benchmark_region

character vector of length 1. Select the region based on which the benchmark loan book should be created. Only companies with production within the selceted region will be kept.