View source: R/influence_full.R
| cooks.distance.rlmerMod | R Documentation |
Joint Mahalanobis influence of each observation on the fitted
(\hat{\beta}, \hat{\sigma}, \hat{\theta}). Stacks the per-
observation influence vectors into a (p + 1 + L) \times n
matrix, computes the empirical variance V = (1/n) IF\,IF^T,
and returns \sqrt{x_i^T V^{-1} x_i} per observation. If
V is singular (variance-component boundary), the Moore-Penrose
pseudo-inverse is used.
## S3 method for class 'rlmerMod'
cooks.distance(model, IF = NULL, ...)
model |
An |
IF |
Optional pre-computed |
... |
Currently unused. |
The full IF computation is the expensive part; pre-compute it once
via IF = implicitIF_full(fit) and pass it in if you need
cooks.distance and influence together.
Numeric vector of length n.
implicitIF_full,
influence
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.