Data on red grouse ticks from Elston et al. 2001

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.

1 2 |

`model` |
An object of class |

`fullHatMatrix` |
Return full hat matrix (not just diagonal values)? |

`...` |
Not currently used |

The diagonal elements of the hat matrix.

1 2 | ```
m <- lmer(Reaction ~ Days + (Days | Subject), sleepstudy)
hatvalues(m)
``` |

Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.