Rev 3796 | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed
\name{hatTrace}\alias{hatTrace}\title{Extract the trace of the `hat' matrix}\usage{hatTrace(x)}\description{Extract the trace of the `hat' matrix from a fitted linear mixed modelor generalized linear mixed model.}\arguments{\item{x}{a fitted model object that inherits from the\code{\linkS4class{mer}} class}}\value{The trace of the hat matrix at the parameter estimates. This is ameasure of the complexity of the model, conditional on the relativevariance components.}\references{Spiegelhalter, D.J., Best, N.G., Carlin, B.P. and van derLinde, A. (2002), "Bayesian measures of model complexity and fit (withdiscussion)", \emph{Journal of the Royal Statistical Society, part B},\bold{64}, (4), 583-639.}\examples{hatTrace(lmer(Reaction ~ Days + (1|Subject) + (0+Days|Subject), sleepstudy))}\keyword{models}\keyword{methods}