Run the scaler analysis (top scalers, scalers to mid-caps) from files
Source:R/run-scaler-analysis.R
run_scaler_analysis.RdNew analysis, after run_scaleup_pipeline() (or run_trade_pipeline()):
reads the indicators panel those write to config$input_dir, preferring
trade_accounts_indicators_<country>.dta (it adds exporter status as a
breakdown) over accounts_indicators_<country>.dta, runs
compute_top_scalers() twice (without and with joint_growth) and
compute_midcap_transitions(), and writes to config$output_dir:
sa_top_scalers_<country>.csv(both versions, columnjoint_growth);sa_midcap_incidence_<country>.csv,sa_midcap_entry_<country>.csv,sa_midcap_by_year_<country>.csv,sa_midcap_coverage_<country>.csv,sa_midcap_hazard_<country>.csv.
Arguments
- config
A
scaleup_configfromconfig_scaleup().
Details
The money variables of the indicators panel are in EUR thousand (the build
rescales them, see financials_unit in config_scaleup()), as the mid-cap
thresholds need; compute_midcap_transitions() stops if they look like
euros.