hatTrace                package:lme4                R Documentation

_E_x_t_r_a_c_t _t_h_e _t_r_a_c_e _o_f _t_h_e '_h_a_t' _m_a_t_r_i_x

_D_e_s_c_r_i_p_t_i_o_n:

     Extract the trace of the `hat' matrix from a fitted linear mixed
     model or generalized linear mixed model.

_U_s_a_g_e:

     hatTrace(x)

_A_r_g_u_m_e_n_t_s:

       x: a fitted model object that inherits from the 'mer' class

_V_a_l_u_e:

     The trace of the hat matrix at the parameter estimates.  This is a
     measure of the complexity of the model, conditional on the
     relative variance components.

_R_e_f_e_r_e_n_c_e_s:

     Spiegelhalter, D.J., Best, N.G., Carlin, B.P. and van der Linde,
     A. (2002), "Bayesian measures of model complexity and fit (with
     discussion)", _Journal of the Royal Statistical Society, part B_,
     *64*, (4), 583-639.

_E_x_a_m_p_l_e_s:

     hatTrace(lmer(Reaction ~ Days + (1|Subject) + (0+Days|Subject), sleepstudy))

