Skip to content

Final version of ddsynth_data and additons of more analysis.#32

Merged
cm401 merged 11 commits into
mainfrom
stan_model_changes
Apr 30, 2026
Merged

Final version of ddsynth_data and additons of more analysis.#32
cm401 merged 11 commits into
mainfrom
stan_model_changes

Conversation

@cm401
Copy link
Copy Markdown
Owner

@cm401 cm401 commented Apr 30, 2026

No description provided.

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR expands the analysis/reporting tooling around the incubation-period synthesis workflow, updates dataset definitions, and refines simulation-study reporting outputs.

Changes:

  • Refactors the simulation study vignette summary table and adds a second summary table stratified by data availability.
  • Adds new analysis scripts for (1) classical meta-analysis via {meta} and (2) per-pathogen supplementary figure generation.
  • Updates the main Stan analysis runner (more pathogens/subgroups, GG/gamma heuristics, resume logic), plus supporting table/map utilities and dataset entries.

Reviewed changes

Copilot reviewed 8 out of 9 changed files in this pull request and generated 7 comments.

Show a summary per file
File Description
vignettes/simulation_study.Rmd Refactors performance summary table generation and adds a “By Data Availability” table.
pathogen_grouping.html Adds a standalone HTML diagram asset.
analysis/run_meta_analysis.R New script to run classical meta-analyses and generate forest plots + pooled summary outputs.
analysis/make_supplementary_figures.R New script to generate multi-panel supplementary PDFs per pathogen from main Stan results.
analysis/main_analysis.R Updates the main Stan fitting workflow (load_all usage, expanded registry/subgroups, heuristics, force rerun/skip controls, resume optimizations).
R/table_utils.R Adds subgroup label and hides tau in tables when n_datasets < 5.
R/map_utils.R Updates size legend labeling to show outbreak size rather than log-scale label.
R/ddsynth_datasets.R Updates/extends several dataset entries (notably Cholera/COVID/Flu).

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread analysis/run_meta_analysis.R Outdated
Comment thread analysis/run_meta_analysis.R Outdated
Comment thread R/map_utils.R
Comment thread R/ddsynth_datasets.R
Comment thread pathogen_grouping.html
Comment thread analysis/run_meta_analysis.R Outdated
Comment thread analysis/main_analysis.R
cm401 and others added 5 commits April 30, 2026 08:56
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Expanding frequency tables with rep(..., freq_count) can allocate very large vectors (e.g., large surveillance datasets) and is avoidable. Prefer computing weighted mean/variance directly from freq_value/freq_count (and from midpoints for interval-censored) to reduce memory/time and avoid potential OOM issues.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 8 out of 9 changed files in this pull request and generated 2 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread R/ddsynth_datasets.R
Comment thread R/table_utils.R
@cm401 cm401 merged commit e2a56a9 into main Apr 30, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants