llik.cb | R Documentation |
Negative log-likelihood function for the chain-binomial model
llik.cb(S0, beta, I)
S0 |
a scalar with value for S0 |
beta |
a scalar with value for beta |
I |
a vector incidence aggregated at serial interval |
the negative log-likelihood for the model
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.