Description Usage Arguments Value Examples
View source: R/make_state_variables.R
This function takes the output of make_stress_data
as an input
generates all the vectors and matrices, the state variables, which are the
basis of our loss computations and impact assessments plus an initial fire
sales proportion vector with entries 0.
1 | make_state_variables(stress_data)
|
stress_data |
a dataframe which is the output of |
A list, with the state variables at t = 0 (observation period) and t = 1 (stress horizon)
B x 1 (number of banks x 1) vector of core tier 1 equity at t = 0
B x I (number of banks x number of security classes) matrix of security exposures at t = 0
B x J (number of Banks x number of loan classes) matrix of loan exposures at t = 0
B x 1 (number of banks x 1) vector of core tier 1 equity at t=1
B x I (number of banks x number of security classes) matrix of security exposures at t = 1
B x J (number of Banks x number of loan classes) matrix of loan exposures at t=1
B x 1 (number of banks x 1) vector of fire sale proportions (a vector of zeros)
1 2 | stress_data <- make_stress_data(eba_exposures_2016, eba_impairments_2016, 1, 2015)
make_state_variables(stress_data)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.