log_likelihood_fun: Calculates the likelihood of the exposure data

Description Usage Arguments Value

Description

Calculates the likelihood of the exposure data

Usage

1
2
log_likelihood_fun(infected, exposure_series, exposure_times, end_time,
  hazard_risk, clr = 2, censor_start = NA)

Arguments

exposure_series

The vector of repeated pathogen exposure values, should be pre-processed

exposure_times

The times of exposures

end_time

Final time: either censor time (infected = 0) or infection time (infected = 1). If there is a lag, process it that first.

hazard_risk

The per time risk of exposure during persistence

clr

The clearance rate of exposure

censor_start

Start of the interval censored data (end_time is the end)

Value

Returns a log survival likelihood (see calc_risk_mult) for uninfected and an interval censored likelihood (see calc_censor_likelihood) for infected


bryanmayer/multdr documentation built on May 13, 2019, 8:11 a.m.