Description Usage Arguments Value
View source: R/LogLikelihood.R
Computes the log-likelihood for a logistic regression model with an offset.
Used by optim
on occasion.
1 | 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.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.