This function computes Poisson objective function including regularizer.
poisson_objective(beta, lam, reported, Q, lnPmat, regularization_order)
spline parameter vector length num_params
positive scalar regularization strength
An integer vector of reported cases.
spline basis matrix Tmod x num_params
matrix size Tobs x Tobs, log of make_likelihood_matrix
An integer (typically 0, 1, 2), indicating differencing order for L2 regularization of spline parameters. Default is 2 for second derivative penalty.
scalar objective function value