Description Usage Arguments Value
Calculates the likelihood of the exposure data
1 2 | log_likelihood_fun(infected, exposure_series, exposure_times, end_time,
hazard_risk, clr = 2, censor_start = NA)
|
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) |
Returns a log survival likelihood (see calc_risk_mult
) for uninfected and an interval censored likelihood
(see calc_censor_likelihood
) for infected
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.