incidental (version 0.1)

marg_loglike_poisson: Marginal log likelihood This function computes the marginal probability of Pr(reported | beta). Note that lnPmat must be zero padded enough (or censored) to match the length of reported cases vector.

Description

Marginal log likelihood This function computes the marginal probability of Pr(reported | beta). Note that lnPmat must be zero padded enough (or censored) to match the length of reported cases vector.

Usage

marg_loglike_poisson(beta, reported, Q, lnPmat)

Arguments

beta

spline parameter vector length num_params

reported

An integer vector of reported cases.

Q

spline basis matrix Tmod x num_params

lnPmat

matrix size Tobs x Tobs, log of make_likelihood_matrix

Value

A scalar log likelihood value.