ml_ve2: Estimate VE using a maximum likelihood (ML) method with MCMC

View source: R/ml_method_w_mcmc.R

ml_ve2R Documentation

Estimate VE using a maximum likelihood (ML) method with MCMC

Description

This method is similar to that of Ainslie et al. 2017 (SIM). The ML method is based on calculating the contribution to the likelihood function of each study participant. See XX for more details.

Usage

ml_ve2(data, params, my_prior = NULL, file_name = "test", par_tab, mcmc_pars)

Arguments

data

data set

params

input parameters

my_prior

prior function for MCMC

file_name

character string of output file name

par_tab

data frame of parameter values

mcmc_pars

vector of MCMC options

Value

list with a tibble of VE estimates for each period (the estimate for each period is the average VE over the days within each period) and the maximu likelihood estimates of the parameters.


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