Title: | Run PACTA on multiple loan books easily |
---|---|
Description: | This repo allows running PACTA analyses on multiple loan books in a structured way and provides access to additional PACTA-related metrics for multiple loan books. Results take the form of csv files and plots and are exported to specified project paths. |
Authors: | Jacob Kastl [aut, cre, ctr] , CJ Yetman [aut, ctr] , Monika Furdyna [aut, ctr] , RMI [cph, fnd] |
Maintainer: | Jacob Kastl <[email protected]> |
License: | MIT + file LICENSE |
Version: | 0.0.0.9000 |
Built: | 2024-11-22 14:22:33 UTC |
Source: | https://github.com/rmi-pacta/pacta.multi.loanbook |
analyse()
runs the necessary steps to analyse the matched loan books,
producing both the outputs of the standard PACTA analysis and the outputs of
the net aggregated alignment metric, including tables and plots.
Parameters for all steps are read from a config.yml
file. The function is
called for its side effects and writes the prepared and diagnosed data sets
to the directory output/analysis
, where output
is the
output directory specified in the config.yml
.
analyse()
and analyze()
are synonyms.
analyse(config) analyze(config)
analyse(config) analyze(config)
config |
either a path to a config.yml file or a list of parameters |
# TODO
# TODO
An overview of the output data sets generated by the package, their data types, and the definitions of the variables.
data_dictionary
data_dictionary
data_dictionary
Name of the dataset
Name of the column
Data type of the column
Description of what the column stands for
Which values are allowed for the column
...
For more details see the help vignette:
vignette("data_dictionary", package = "pacta.multi.loanbook")
internal
Initialise a project directory and its config file
initialise_default_project(path = "project") initialize_default_project(path = "project")
initialise_default_project(path = "project") initialize_default_project(path = "project")
path |
an absolute or relative path pointing to the location you would like the project directory to be created |
match_loanbooks()
runs the necessary steps to match the raw input loan books with the
asset based company data (ABCD) used in the PACTA for Supervisors analysis.
Specifically, it prepares matched loan books based on name matching or direct
identifiers, depending on the configuration. The output matched loan books
need to be manually validated for further processing.
Parameters the matching step are read from a config.yml
file and follow the
options available in r2dii.match::match_name
. The function is called for its
side effects and writes the prepared data sets to the directory output/match
,
where output
is the output directory specified in the config.yml
.
match_loanbooks(config)
match_loanbooks(config)
config |
either a path to a config.yml file or a list of parameters |
# TODO
# TODO
prepare_abcd()
runs the necessary steps to prepare the input data sets for
the PACTA for Supervisors analysis. Specifically it prepares the abcd_final
data set by removing inactive companies if desired. And it allows preparing
the ratios by which the exposures to counterparties are split along the sectors.
Parameters for both steps are read from a config.yml
file. The function is
called for its side effects and writes the prepared data sets to the directory
output/prepare
, where output
is the output directory specified in the
config.yml
.
prepare_abcd(config)
prepare_abcd(config)
config |
either a path to a config.yml file or a list of parameters |
# TODO
# TODO
prioritise_and_diagnose()
runs the necessary steps to prioritise the matched
loan books and diagnose both the match success rate and the coverage of the
real economy assets by the matched loan books.
Parameters for all steps are read from a config.yml
file. The function is
called for its side effects and writes the prepared and diagnosed data sets
to the directory output/prioritise_and_diagnose
, where output
is the
output directory specified in the config.yml
.
prioritise_and_diagnose()
and prioritize_and_diagnose()
are synonyms.
prioritise_and_diagnose(config) prioritize_and_diagnose(config)
prioritise_and_diagnose(config) prioritize_and_diagnose(config)
config |
either a path to a config.yml file or a list of parameters |
# TODO
# TODO