log_likelihood: Calculate the log-likelihood for an epidemic, up to a...

Description Usage Arguments Value Examples

View source: R/log_likelihood.R

Description

This function is used tp calculate the likelihood of a General Stochastic Epidemic, and brings together all the previously specified functions; prod_part, interval_intersect, and integral_part.

Usage

1
log_likelihood(inf_times, rem_times, B)

Arguments

inf_times

A vector of the infection times of all individuals (Inf if not infected).

rem_times

A vector of the removal times of all infected individuals.

B

The infection rate matrix.

Value

Returns the value of the log likelihood, up to a constant of proportionality.

Examples

1
This function is utilised in the inference functions.

BenjamenSimon/EpidemicR documentation built on March 23, 2020, 11:03 p.m.