| LL_poisson | R Documentation |
Computes the Poisson regression log-likelihood of a vector of observed values given the GLM systematic component.
LL_poisson(y, x, mod)
y |
numeric vector recording a count dependent variable. |
x |
data.frame (or matrix) containing predictor values. |
mod |
|
If x and y are equal to the data on which mod has been trained, this function returns the same result as the default logLink function. If x and y are new, the function returns the log-likelihood of the new data under the trained model.
A list containing:
ll an atomic vector of length 1 containing the log-likelihood value.
sc an atomic vector containing the systematic component for the input x and mod.
Edoardo Costantini, 2023
Agresti, A. (2012). Categorical data analysis (Vol. 792). John Wiley & Sons.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.