All functions |
|
---|---|
Calculate percentage value change between scenarios for equity (and temporarily other asset types) on the portfolio level |
|
Calculate how the production trajectory for a company/ald_business_unit changes after the policy shock hits. |
|
Calculate scenario prices |
|
Calculate survival probability |
|
Calculate annual profits |
|
Calculate litigation shock trajectory |
|
Calculates annual net profits on the company-ald_business_unit level for the baseline and late and sudden scenarios. Climate laggards which need to build out their production in increasing technologies to compensate for their missed targets, are "punished" by adjusting the net profit margin on their additional build out based on their proximity to target within the given ald_business_unit. Specifically, we measure the ratio of how much of the required build out or reduction in a ald_business_unit the company will have done at the end of the forecast period. If the ald_business_unit has an increasing target and the ratio of completion is below one, the net_profit_margin on the additional production build out is multiplied with the proximity to the target. This approximates the additional capital investment such a company would have to make in a short time, which leads to added costs. This ensures that late build out will not proportionally translate into increased profits. |
|
Calculates annual net profits on the company-ald_business_unit level for the baseline scenario |
|
Calculates annual net profits on the company-ald_business_unit level for the shock scenario for declining technologies |
|
|
Calculates annual net profits on the company-ald_business_unit level for the baseline and late and sudden scenarios - with a carbon tax being added. |
Calculates annual net profits on the company-ald_business_unit level for the shock scenario for increasing technologies. Climate laggards which need to build out their production in increasing technologies to compensate for their missed targets, are "punished" by adjusting the net profit margin on their additional build out based on their proximity to target within the given ald_business_unit. Specifically, we measure the ratio of how much of the required build out or reduction in a ald_business_unit the company will have done at the end of the forecast period. If the ald_business_unit has an increasing target and the ratio of completion is below one, the net_profit_margin on the additional production build out is multiplied with the proximity to the target. This approximates the additional capital investment such a company would have to make in a short time, which leads to added costs. This ensures that late build out will not proportionally translate into increased profits. |
|
Calculates annual net profits on the company-ald_business_unit level for the baseline and late and sudden scenarios - without a carbon tax being added. |
|
Calculate change in probabilities of default (PDs) of loans connected to companies at hand. This is based on the equity values derived from the DCF model. Said Equity values are used as different starting points for the Merton model (one reflecting the business as usual baseline scenario, the other reflecting the late & sudden shock scenario). The change in PDs can then be used to calculate the Expected Loss due to the shock on the portfolio level. |
|
Calculate transition shock trajectory |
|
Check expected missing patterns |
|
Check financial data |
|
Check that required levels of a variable are available in data |
|
Check results |
|
Check if values in financial data are plausible |
|
Calculate percentage value change between scenarios for equity (and temporarily other asset types) on the company-ald_business_unit level |
|
Translate power capacity to power generation. Units of generated power are assumed to be sold and hence get priced in the net profit calculations. This also entails converting MWh into MW per year, since we calculate yearly profits. |
|
Translate power capacity to power generation |
|
Customise output path |
|
conveniently access stress test related files in the directory set via envvar or options |
|
Insert the symbol for degrees |
|
Calculates discounted net profits based on a dividends discount model |
|
Does this computer have a local copy of 2dii's dropbox folder? |
|
Checks if input args are missing |
|
Fill missing values on annual_profits |
|
Remove negative late and sudden rows |
|
Generate litigation scenario shock from a start year that represents when a litigation settlement is reached. |
|
Generate transition scenario shock from a start year that represents when a large scale climate transition policy is deployed. |
|
Obtain available geographies for sector |
|
Get End year from data |
|
Get name of iterator variable |
|
Get scenario_geography_x_ald_sector |
|
Keep rows that fulfill constraints of the merton model |
|
Lookup valid values |
|
Easily access directories in your local copy of 2dii's Dropbox folder |
|
Process data of type indicated by function name |
|
Read in power capacity factors from csv and check that all expected columns are given. |
|
Read in carbon price data from ngfs data |
|
Read in company financial data processed from eikon exports and AR master data that contain information on multiple credit risk inputs |
|
Read in price data |
|
Read in AR PAMS production data. |
|
Read in scenario data |
|
Checks data for missings and duplicates |
|
Report dropped companies |
|
Inner join datasets and report number of dropped rows |
|
Report duplicate rows |
|
Identify and report missing value combinations |
|
Report missing |
|
Run stress testing for provided asset type. |
|
Run stress testing for provided asset type. |
|
Obtain available scenario_x_source for geography - sector combinations |
|
Defines which scenario values to use for the baseline trajectory in the stress test. |
|
Defines which scenario values to use for the production trajectory after a litigation event in the LRISK stress test. |
|
Defines which scenario values to use for the late & sudden trajectory in the stress test. |
|
Process input ST data |
|
A dataset describing the arguments of |
|
Calculate annual profits after payout of settlement in lrisk |
|
Validate that a data frame contains expected columns |
|
Validate that a file exists in a given directory |
|
Check that input values are valid |
|
Validate that values are within range |
|
Wrangle results |
|
Write stress test reports to output dir |