ml_ve: Estimate VE using a maximum likelihood (ML) method

View source: R/ml_method.R

ml_veR Documentation

Estimate VE using a maximum likelihood (ML) method

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_ve(
  dat,
  n_days,
  n_periods,
  n_days_period,
  latent_period = 1,
  infectious_period = 4
)

Arguments

dat

data set

n_days

number of days in the study

n_periods

number of periods in the study

n_days_period

number of days per period

latent_period

length of latent period

infectious_period

length of infectious period

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.