Computes the log-likelihood for a logistic regression model
with an offset. Used by optim
on occasion.
LogLikelihood_offset(beta, Y, H, offset)
beta | A vector of coefficients in a logistic GLM. |
---|---|
Y | A vector of the outcome. |
H | The matrix of covariates. |
offset | The vector of offsets. |
Numeric of the summed negative log-likelihood loss over observations.