Learn R Programming

vacem (version 0.1-1)

ll.coverage: Gets the log likelihood of a set of observations.

Description

Gets the log likelihood of a set of observations.

Usage

ll.coverage(rho, alpha, obs, campaigns, z, w, cdf.fun, ...)

Arguments

rho
the rho parameter
alpha
the alpha parameter
obs
the observations. Must have columns y, date, age
campaigns
campaign definitions. Must have columns date, v, N, age.low, age.high
z
the z matrix. calculated if null
w
the w matrix. calculated if null
cdf.fun
the cdf function used to calculate the w.matrix, not needed if w is provided. This is large F in paper eq. 7,8
...
additional arguments to cdf.fun

Value