This repository contains the analytical engine, processed data products, public-facing dashboard scaffold, and report scaffold for a project on Venezuelan economic recovery scenarios.
The project is built around one central question:
How long would it take Venezuela to recover the real GDP or real GDP per capita level of a user-selected benchmark year under a given annual growth rate, and how historically plausible is sustaining that path?
- The analytical engine lives in
R/. - Pipeline entry points live in
scripts/. - The app and report consume processed outputs, not raw Excel files.
- Raw inputs are kept in
data/raw/. - Historical plausibility is presented as a transparent historical-frequency concept, not as a forecast probability.
The repository is organized into five layers:
- Raw and processed data in
data/ - Reusable analytical functions in
R/ - Reproducible pipeline scripts in
scripts/ - Presentation layer in
app/ - Public article/report in
reports/article-es/
data/raw/: manual source inputs and data notesdata/interim/: cleaned and intermediate historical tablesdata/final/: processed CSV outputs for the app and reportR/: reusable analytical functionsscripts/: ordered data-build scriptsoutputs/figures/: generated presentation figures (.pngfor HTML and matching.pdfvectors for Beamer/PDF)outputs/presentation/: definitive rendered HTML and PDF presentation outputsapp/: dashboard scaffold, modules, static assets, and i18n filesreports/article-es/: Spanish article/report scaffoldreferences/: source references, including the Tableau prototypetests/testthat/: unit tests for the analytical engine
- Read the Excel master file from
data/raw/ - Clean and validate the historical series
- Recompute all derived indicators in R
- Export app-ready CSV files to
data/final/ - Consume those outputs in the dashboard and report
Current pipeline sequence:
scripts/00_set_up.Rscripts/01_download_wdi_real_gdp_growth.Rscripts/02_download_imf_weo_gdp_pc_growth.Rscripts/03_download_imf_weo_ppp_scatter_data.Rscripts/04_download_owid_development_data.Rscripts/05_build_clean_data.Rscripts/06_build_series.Rscripts/07_build_episodes.Rscripts/08_build_plausibility.Rscripts/09_build_app_data.Rscripts/10_graph_historical_recovery.Rscripts/11_graph_wilks_composite_correlation.Rscripts/12_graph_imf_weo_ppp_scatter.Rscripts/13_graph_owid_development_indicators.Rscripts/14_render_presentation.Rscripts/15_run_app.Rscripts/99_run_all.R
The original exploratory script in scripts/01_legacy.R is preserved for reference during the transition to the new architecture.