marg_loglike_poisson_grad: Marginal log likelihood gradient

Description Usage Arguments Value

View source: R/spline_model.R

Description

This function computes the gradient of the log likelihood term with respect to beta.

Usage

1
marg_loglike_poisson_grad(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 numeric vector, gradient of log likelihood value with respect to beta.


incidental documentation built on Sept. 16, 2020, 5:07 p.m.