llik.cb {epimdr2} | R Documentation |
Negative log-likelihood function for the chain-binomial model
Description
Negative log-likelihood function for the chain-binomial model
Usage
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-likelihood for the model
Examples
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)
[Package epimdr2 version 1.0-9 Index]