grad_offset: Gradient for Logistic Regression with Offsets
Description
A function that computes the gradient of the for a logistic regression
model with an offset term. Used by optim
on occasion.
Usage
grad_offset(beta, Y, H, offset = NULL)
Arguments
beta
A vector of coefficients in a logistic glm
Value
Numeric vector of the gradient of the parameter vector