powered by
A function that computes the gradient of the for a logistic regression model. Used by optim on occasion.
optim
grad(beta, Y, X)
A vector of coefficients in a logistic glm
The outcome
The design matrix
Numeric vector of the gradient of the parameter vector