Description Usage Arguments Details Functions Examples
View source: R/LIKpoisson_glmm.R
The likelihood of the parameters beta and sigma in a Poisson GLMM is computed. The integral is calculated with Gauss-Hermite quadrature.
1 2 3 | LIKpoisson_glmm(beta, sigma, x, y)
LOGLIKpoisson_glmm(beta, sigma, x, y)
|
beta |
scalar |
sigma |
scalar |
x |
vector, regressor |
y |
vector, regressand |
The function dpois is used to evaluate the conditional likelihood, as it is fast (implemented in C) and can handle large values of y, that can otherwise be problematic in the evaluation of factorial(y).
The loglikelihood can sometimes be obtained even when the likelihood evaluates to zero (numerically).
LOGLIKpoisson_glmm
: LOGLIKpoisson_glmm directly sums the log of the likelihood terms that are computed in the same way as by the function LIKpoisson_glmm.
1 2 3 4 5 6 7 8 9 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.