Analytic reports combine SQL extracts, R analysis, charts, and narrative for stakeholders—pharma CSR, marketing dashboards, and research supplements.
Report structure
- Question and data provenance (SQL query, cohort definition)
- Methods (filters, models, assumptions)
- Results (tables + ggplot2 figures locally)
- Limitations and next steps
Automation
Parameterize Rmd with params: for monthly reruns—schedule via cron or orchestration tools in Data Science pipelines.
Important interview questions and answers
- Q: Why separate SQL and R?
A: SQL scales aggregation; R handles modeling and visualization on the result set. - Q: Version control reports?
A: Git tracks .Rmd and renv.lock—not giant exported CSVs in the repo.
Self-check
- List two sections every analytic report needs.
- What tracks cohort definition?
Tip: Paste the exact SQL cohort query (with date) into an appendix—reviewers ask about population definition.
Interview prep
- Cohort definition?
Document SQL filters and dates so results are auditable.