File: hatvalues.merMod.Rd

package info (click to toggle)
lme4 2.0-1-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 6,860 kB
  • sloc: cpp: 2,543; makefile: 2
file content (25 lines) | stat: -rw-r--r-- 847 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
\name{hatvalues.merMod}
\alias{hatvalues.merMod}
\title{Diagonal elements of the hat matrix}
\usage{
  \method{hatvalues}{merMod} (model, fullHatMatrix = FALSE, ...)
}
\arguments{
  \item{model}{An object of class \code{\link{merMod}}.}
  \item{fullHatMatrix}{Return full hat matrix (not just diagonal values)?}
  \item{...}{Not currently used}
}
\value{
  The diagonal elements of the hat matrix.
}
\description{
  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.
}
\examples{
m <- lmer(Reaction ~ Days + (Days | Subject), sleepstudy)
hatvalues(m)
}