# R: Negative log-likelihood function for the chain-binomial model

llik.cb {epimdr} | 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-likelhood 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 epimdr version 0.6-4 Index]