View source: R/llcont.glmerMod.R
llcont.glmerMod | R Documentation |
A function for extracting the cluster-wise log likelihoods of a generalized linear mixed effects model fitted via lme4. This function returns the cluster-wise log likelihoods, evaluated at the ML estimates.
## S3 method for class 'glmerMod' llcont(x, ...)
x |
An object of class |
... |
Additional arguments. |
A vector of log-likelihoods whose length is the number of clusters.
Douglas Bates, Martin Maechler, Ben Bolker, Steve Walker (2015). Fitting Linear Mixed-Effects Models Using lme4. Journal of Statistical Software, 67(1), 1-48. doi: 10.18637/jss.v067.i01.
Merkle, E. C., You, D. and Preacher, K. J., 2016. Testing Nonnested Structural Equation Models. Psychological Methods, 21(2), 151. https://arxiv.org/pdf/1402.6720v3
## Not run: data(finance, package="smdata") lme4fit <- glmer(corr ~ jmeth + (1 | item), data = finance, family = binomial, nAGQ = 20) # clusterwise log likelihood llcont(lme4fit) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.