estimate_ve: Apply different VE estimation methods

View source: R/estimate_ve.R

estimate_veR Documentation

Apply different VE estimation methods

Description

This function applies teh Durham method, Tian method, and ML method to data from a vaccine efficacy/effectiveness study.

Usage

estimate_ve(
  dat,
  params,
  write_to_file = TRUE,
  path = getwd(),
  par_tab,
  mcmc_pars
)

Arguments

dat

data set

params

list of input parameters

write_to_file

logical. If true, outputs are written to file

path

path where files are to be written. Defaults to working directory

par_tab

data frame of parameters for ML method

mcmc_pars

vector of MCMC inputs

Value

list of VE estimates from each method, maximum likelihood parameter estimates from the ML method for each simulation, the proportion of times the null hypothesis was rejected for each method, mean VE estimate over simulations for each time period, and the mean maximum likelihood parameters over all simulations.


fluvee/wave documentation built on Nov. 9, 2023, 12:31 p.m.