name: analysis description: Skill for analysing outbreaks: estimating severity (CFR), transmissibility (Rt), final size, superspreading, and vaccine effectiveness.
Epiverse-TRACE Analysis
[!IMPORTANT] Use the Introspection Protocol: See epiverse-overview skill for the protocol. Before generating code, verify package APIs and functions using R introspection commands.
[!NOTE] Workflow Context: This skill's code should be included in Quarto document code chunks (not separate R scripts). See the reporting skill for the complete workflow structure.
This skill provides tools for analyzing outbreak data to estimate key epidemiological metrics.
Packages
cfr
Purpose: Estimate disease severity and case ascertainment with delay correction.
Key Functions:
cfr_static(): Estimate overall CFR for an outbreakcfr_rolling(): Estimate time-varying CFRcfr_time_varying(): Estimate CFR with temporal changes
Key Features: Accounts for delay from onset to death, provides corrected and naive estimates
finalsize
Purpose: Calculate the final size of an epidemic in heterogeneous populations.
Key Functions:
final_size(): Calculate epidemic final size given R0r_eff(): Calculate effective reproduction number
Key Features: Handles age-structured populations, contact matrices, heterogeneous susceptibility
superspreading
Purpose: Estimate individual-level variation in transmission.
Key Functions:
probability_epidemic(): Calculate probability outbreak becomes epidemicprobability_extinct(): Calculate probability of extinctionproportion_cluster_size(): Proportion of transmission in clustersproportion_transmission(): Proportion causing X% of transmission
Key Features: Fits offspring distributions (negative binomial, Poisson-lognormal), estimates R and k
epidemics
Purpose: Composable epidemic scenario modelling.
Key Functions:
model_default(): SEIR-V model with interventionspopulation(): Create population structureintervention(): Define contact reduction or vaccinationmodel_ebola(): Stochastic Ebola modelmodel_vacamole(): COVID-19 vaccination model
Key Features: Contact matrices, age-stratified risks, time-varying parameters, interventions
vaccineff
Purpose: Estimate vaccine effectiveness from cohort and case-control studies.
Key Functions:
make_vaccineff_data(): Prepare data for VE estimationestimate_vaccineff(): Estimate VE using Cox regressionplot(): Visualize VE results (log-log plots, survival curves)summary(): Get VE estimates with confidence intervals
Key Features: Handles cohort design, matching, immunization delays, time-varying effects
Typical Workflow
Severity Analysis
- Prepare line list with
linelistpackage - Get onset-to-death delay from
epiparameter - Estimate CFR with
cfr::cfr_static()orcfr::cfr_rolling()
Transmission Analysis
- Get generation time from
epiparameter - Estimate R and k using
superspreadingor fit offspring distribution - Calculate epidemic probability with
probability_epidemic()
Scenario Modeling
- Define population with
epidemics::population() - Set up interventions with
epidemics::intervention() - Run model with
epidemics::model_default()or disease-specific model
Final Size
- Get contact matrix (e.g., from
socialmixr) - Define susceptibility structure
- Calculate with
finalsize::final_size()
Best Practices
- Always account for delays when estimating severity
- Use delay distributions from literature (
epiparameter) - Report estimates with uncertainty (confidence intervals)
- Visualize time-varying estimates to show temporal changes
- Check model assumptions (proportional hazards for CFR)
- Document parameter sources and justifications
Common Pitfalls
- CFR without delay correction: Underestimates severity during active outbreak
- Ignoring heterogeneity: Leads to incorrect final size estimates
- Wrong offspring distribution: Affects superspreading inference
- Misspecified contact matrices: Impacts intervention effectiveness
Integration with Other Skills
- data-intake: Provides cleaned line list data
- parameters: Provides delay distributions for correction
- visualisation: Creates plots of rolling estimates, epidemic curves
- reporting: Synthesizes results into publication-ready document