How rhenriquezitg/bodcalc works
The Shiny app guides users through population, deaths, health states and economic inputs, then calculates burden estimates, uncertainty intervals and results. The graph follows the documented module structure and methods; source excerpts were unavailable, so relationships are limited to those stated in the README.
Main entry points: mod_results.R Results page · app_ui.R App UI · mod_age_sex_upload.R Upload widget · app.R App entry
Components 25
User workflow
- App entry
app.R - App UI
R/app_ui.R - App server
R/app_server.R - Population input
R/mod_population.R - Deaths input
R/mod_deaths.R - Health states
R/mod_health_states.R - Economic inputs
R/mod_economics.R - Upload widget
R/mod_age_sex_upload.R
Burden calculations
- Reference life table
data/gbd_life_table.rds - Life table logic
R/fct_life_table.R - YLL calculation
R/fct_calc_yll.R - YLD calculation
R/fct_calc_yld.R - DALY calculation
R/fct_calc_daly.R - Discount weighting
R/fct_discount_weight.R - Monte Carlo
R/fct_monte_carlo.R - Economic burden
R/fct_economic_burden.R
Calculation support
- Input validation
R/fct_validate_inputs.R - CSV templates
R/fct_csv_template.R - Age grid
R/utils_age_grid.R - Duration utility
R/utils_duration.R - Currency utility
R/utils_currency.R
Results and reporting
- Results page
R/mod_results.R - Plot utilities
R/utils_plots.R - HTML report
report/report.Rmd
Other components
- User
Connections 30
- User → App entry: runs
README.md - App entry → App server: starts
README.md - App entry → App UI: presents
README.md - App entry → Reference life table: loads
README.md - App UI → Population input: offers step 1
README.md - App UI → Deaths input: offers step 2
README.md - App UI → Health states: offers step 3
README.md - App UI → Economic inputs: offers step 4
README.md - App UI → Results page: offers step 5
README.md - Population input → Age grid: sets reference grid
README.md - Population input → Upload widget: uses shared widget
README.md - Deaths input → Upload widget: uses shared widget
README.md - Health states → Upload widget: uses shared widget
README.md - Upload widget → Input validation: validates inputs
README.md - Upload widget → CSV templates: offers download
README.md - Life table logic → Reference life table: uses reference data
README.md - YLL calculation → Life table logic: uses life expectancy
README.md - Results page → YLL calculation: calculates YLL
README.md - Results page → YLD calculation: calculates YLD
README.md - Results page → DALY calculation: calculates DALYs
README.md - DALY calculation → YLL calculation: sums with YLD
README.md - DALY calculation → YLD calculation: sums with YLL
README.md - Results page → Discount weighting: applies options
README.md - Results page → Monte Carlo: estimates uncertainty
README.md - Results page → Economic burden: calculates costs
README.md - Results page → Plot utilities: presents plots
README.md - Results page → HTML report: downloads report
README.md - Economic burden → DALY calculation: uses DALYs
README.md - Economic inputs → Currency utility: sets currency
README.md - Health states → Duration utility: provides duration