marg_loglike_poisson_grad {incidental} | R Documentation |
Marginal log likelihood gradient
Description
This function computes the gradient of the log likelihood term with respect to beta.
Usage
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.
[Package incidental version 0.1 Index]