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

Description Usage Arguments Value Examples

View source: R/chris_log_likelihood_0.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. It assumes that the epidemic began at time 0.

Usage

1
chris_log_likelihood_0(t_inf, t_rem, B)

Arguments

t_inf

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

t_rem

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.