Skip to content

Commit

Permalink
update documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobvjk committed Jan 6, 2025
1 parent aa0c95a commit 9601611
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
11 changes: 6 additions & 5 deletions data-raw/data_dictionary.R
Original file line number Diff line number Diff line change
Expand Up @@ -125,11 +125,12 @@ dd_loanbook_exposure_net_aggregate_alignment <- dplyr::tribble(

dd_data_sankey <- dplyr::tribble(
~dataset, ~column, ~typeof, ~definition, ~value,
"data_sankey", "<by_group>", "character", "Leftmost node in the sankey plot. Defines the split of the banking books into groups. Any additional descriptor either at the loan level or at the banking book level", "Any variable name is permissible, that is not already used otherwise. All entries in the banking book should have a corresponding value. NULL is permissible and implies no grouping",
"data_sankey", "middle_node", "character", "Middle node in the sankey plot. A different grouping of interest. E.g. 'sector' would split the financial exposures according to sectoral exposure", "Must be available in the exposure alignment results used as input for the graph",
"data_sankey", "middle_node2", "character", "Optional: An additional middle node can be added for further disaggregation of exposures in the sankey plot", "Must be available in the exposure alignment results used as input for the graph",
"data_sankey", "is_aligned", "logical", "End node and color indicator. A dummy variable that indicates if the underlying counterparty related to the exposure is aligned based on the net alignment metric or not", "Value is either 'Aligned' or 'Not aligned'",
"data_sankey", "loan_size_outstanding", "double", "Remaining outstanding loan value to the underlying counterparty", "Numerical value greater or equal to 0"
"data_sankey", "loan_size_outstanding", "double", "Remaining outstanding loan value to the underlying counterparty. Determines the vertical size of each ribbon in the sankey plot", "Numerical value greater or equal to 0",
"data_sankey", "initial_node", "character", "Leftmost node in the sankey plot. Defines the split of the banking books into groups. Any additional descriptor either at the loan level or at the banking book level", "Any variable name is permissible, that is not already used otherwise. All entries in the banking book should have a corresponding value. NULL is permissible and implies no grouping",
"data_sankey", "middle_node", "character", "Middle node in the sankey plot. Indicates the sectors that the underlying counterparties operate in, which implies this node splits the financial exposures according to sectoral exposure", "Variable `sector` must be available in the exposure alignment results used as input for the graph.",
"data_sankey", "end_node", "character", "End node and color indicator. A dummy variable that indicates if the underlying counterparty related to the exposure is aligned based on the net alignment metric or not", "Value is one of 'Aligned', 'Not aligned', or 'Unknown'",
"data_sankey", "is_aligned", "character", "Indicates which alignment category any given flow in the sankey plot correponds to. Coincides with end_note and determines the fill of the flows", "Value is one of 'Aligned', 'Not aligned', or 'Unknown'",
"data_sankey", "currency", "character", "Shows the currency the financial exposure is denominated in", "Derived from the currency of the analyzed loan books"
)

dd_data_scatter_alignment_exposure <- dplyr::tribble(
Expand Down
Binary file modified data/data_dictionary.rda
Binary file not shown.
2 changes: 1 addition & 1 deletion vignettes/cookbook_interpretation.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ For detailed descriptions of the columns in the output files, please refer to th

The variables in the table map to the figures as follows:

- `<by_group>`: The variable that the loan books are split by. This corresponds to the leftmost node in the sankey plot and the values can either be all the same for the aggregate view on all analysed loan books or the values corresponding to each of the groups.
- `initial_node`: The variable that the loan books are split by. This corresponds to the leftmost node in the sankey plot and is derived from the `by_group` parameter set in the `config.yml` file. The values can either be all the same for the aggregate view on all analysed loan books or the values corresponding to each of the groups.
- `middle_node`: The PACTA sectors for which there is some financial exposure in the analyzed loan books.
- `is_aligned`: Binary variable that can have values "aligned" or "not aligned". All exposures that are aligned are represented as green ribbons, all those that are not aligned are red ribbons. The underlying net alignment metric refers to the five year forward-looking values in the final year of the analysis.
- `loan_size_outstanding`: The financial exposure of the loan books to the individual sectors and grouped by `ìs_aligned`. This is the continuous variable that determines the size of the ribbons in the plot along the y-axis.
Expand Down

0 comments on commit 9601611

Please sign in to comment.