llik.cb: Negative log-likelihood function for the chain-binomial model

Description Usage Arguments Value Examples

View source: R/rfuncs.R

Description

Negative log-likelihood function for the chain-binomial model

Usage

1
llik.cb(S0, beta, I)

Arguments

S0

a scalar with value for S0

beta

a scalar with value for beta

I

a vector incidence aggregated at serial interval

Value

the negative log-likelhood for the model

Examples

1
2
3
twoweek=rep(1:15, each=2)
niamey_cases1=sapply(split(niamey$cases_1[1:30], twoweek), sum)
llik.cb(S0=6500, beta=23, I=niamey_cases1)

epimdr documentation built on March 26, 2020, 7:41 p.m.

Related to llik.cb in epimdr...