simple_integral_part: Calculate the integral part of the infection likelihood...

Description Usage Arguments Value Examples

View source: R/simple_integral_part.R

Description

This function is used in the calculation of the likelihood for a General Stochastic Epidemic, and calculates the integral part of the infection likelihood, using the alternative double-sum parameterisation.

Usage

1
2
simple_integral_part(I = inf.times, R = rem.times,
  beta.mat = beta.mat)

Arguments

I

A vector of the infection times of all individuals (Inf if not infected), ordered by ID.

R

A vector of the infection times of all individuals (Inf if not infected), ordered by ID.

beta.mat

The infection rate matrix.

Value

Returns the value of the integral detailed above.

Examples

1
This function is utilised by the simple_log_likelihood function.

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