age.likelihood: Log-likelihood for a model run of an age-structured childhood...

Description Usage Arguments Value Author(s)

Description

Log-likelihood for a model run of an age-structured childhood infection model

Usage

1
2
3
age.likelihood(trajectory, data.cases, data.sero = NULL, rel = F,
  sample = NULL, proportion.reported = 1, normal.approximation = F,
  time.column = "time")

Arguments

trajectory

The model trajectory, in a data.table with a column "year", a column "lower.age.limit", and at least one of "rel.incidence" or "abs.incidence"

data.cases

The data trajectory, in the same format as the model trajectory

data.sero

Serology, if any

rel

Whether to fit relative incidences

sample

Whether the data are the result of a sampling procedure

proportion.reported

The average proportion of cases reported

normal.approximation

Whether to use the normal approximation to the binomial distribution

Value

A number, the log-likelihood

Author(s)

Sebastian Funk


sbfnk/dynmod documentation built on May 29, 2019, 3:21 p.m.