Skip to contents

Main functions

Primary user-facing functions

nomatchVE()
Main function to estimate marginal cumulative incidences and derived effect measures without matching
add_simultaneous_ci()
Add simultaneous confidence intervals to vaccine effectiveness fit
plot(<vefit>)
Plot method for vefit objects
compare_ve_fits()
Compare two vefit objects

Matching-based estimation

Functions for matching cohort design and estimation

match_rolling_cohort()
Match vaccinated and unvaccinated individuals using rolling cohort design
matching_ve()
Compute a matching-based estimator of VE with confidence intervals

Proposed method estimation

Core estimation functions for the g-computation approach

fit_model_0() fit_model_1()
Fit survival models to estimate exposure-specific hazards for G-computation approach
get_observed_weights()
Estimate observed distributions of exposure eval_times and covariates
compute_psi_dx_t0()
Compute day- and covariate- specific cumulative incidences
marginalize_psi_dx_t0()
Marginalize conditional cumulative incidences
compute_psi_bar_times()
Compute overall cumulative incidences at multiple timepoints

Utilities

Helper functions for data manipulation and formatting

print(<vefit>)
Print method for vaccine effectiveness fits
summary(<vefit>)
Summary method for vaccine effectiveness fits
estimates_to_df()
Convert estimates to tidy long-format data frame

Data

simdata
Simulated dataset