hatvalues.jglmm | R Documentation |
Returns the values on the diagonal of the hat matrix, which is the matrix that transforms the response vector (minus any offset) into the fitted values (minus any offset). Note that this method should only be used for linear mixed models. It is not clear if the hat matrix concept even makes sense for generalized linear mixed models.
## S3 method for class 'jglmm' hatvalues(model, ...)
model |
An object of class 'jglmm', as returned by 'jglmm()'. |
... |
Optional additional arguments, currently none are used. |
A numeric vector containing the diagonal elements of the hat matrix.
## Not run: jglmm_setup() lm1 <- jglmm(Reaction ~ Days + (Days | Subject), lme4::sleepstudy) hatvalues(lm1) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.