The Quarto report (Documentation Index
Fetch the complete documentation index at: https://mintlify.com/namakala/inappropriate-acid-suppressor-agent-use/llms.txt
Use this file to discover all available pages before exploring further.
docs/report.qmd) is generated automatically as the final step of the targets pipeline via a tar_quarto() target. It loads all upstream model objects using targets::tar_load() and targets::tar_read(), then renders a complete PDF containing executive summary, methods, results, and appendix sections. You do not need to render the report manually; running targets::tar_make() will produce it after all model targets are complete.
Report structure
The report is organized into four top-level sections: Executive Summary A narrative overview of the main findings: overall pooled prevalence, heterogeneity, robustness to publication bias, and key drivers of variability. Methods- Data Processing and Variable Standardization
- Pooled Prevalence Estimation — random effects, Freeman-Tukey transformation, REML, Hartung-Knapp adjustment
- Heterogeneity Assessment — I², τ², H, Wald’s Q; subgroup analyses and meta-regression
- Publication Bias and Sensitivity Analysis — contour-enhanced funnel plots, Copas selection model
- Software and Reproducibility — R 4.5.1,
targets,tarchetypes,crew
- Overall Prevalence of Inappropriate Use
- Heterogeneity
- Publication Bias and Small Study Effects
- Subgroup Analyses: Age, Continent, Study Quality, Clinical Setting
- Meta-Regression
- Interpretation Notes — guidance on Doi plot vs. funnel plot choice, Copas model rationale, and further reading
- Full model outputs (summary, funnel/Doi plots, Copas model)
- Subgroup model outputs (iterated over all
mod_subgroup_*targets) - Meta-regression outputs (univariable and multivariable)
Output formats
The report is configured indocs/report.qmd with format: pdf and keep-md: true:
docs/report.pdf— the primary rendered report for distribution and reviewdocs/report.pdf.md— a Markdown copy retained for inspection, diffing, and programmatic access to rendered text
Running the report independently
If you need to re-render the report without re-running all upstream targets (for example, after editing prose inreport.qmd), use:
report target. All upstream model targets (mod_prop, mod_copas_prop, subgroup models, meta-regression models) must already be computed and stored in the _targets/ cache.
The report uses
targets::tar_load() and targets::tar_read() throughout to access pipeline results. All upstream targets must be computed and available in the cache before rendering; otherwise the report will fail with a missing-object error.Key helper functions
Three helper functions defined in the{r helper-functions} chunk power the report’s narrative output.
printSummary(mod)
Prints a formatted summary of a meta-analysis model: pooled prevalence on the probability scale with 95% CI, number of studies, total observations, total events, and all heterogeneity measures.
pft2p(x, n)
Back-transforms a Freeman-Tukey double arcsine estimate to the probability scale using the harmonic mean of the sample sizes. This is required because the meta-analysis is fitted on the transformed scale.
getMetaDetails(meta_object)
Captures and formats the output of meta:::catmeth() for a given model object. When detail = TRUE is passed to printSummary(), this function appends a structured description of the model settings including estimator, transformation, and confidence interval method.
Reproducibility
All analyses useseed <- 1810, set in _targets.R, to ensure that any stochastic steps produce identical results across runs. The complete computational environment — R version, package versions, and dependency graph — is captured in renv.lock. To restore the exact environment used to produce the report:
