Learn R Programming

pbkrtest (version 0.3-7)

vcovAdj: Ajusted covariance matrix for linear mixed models according to Kenward and Roger

Description

Kenward and Roger (1997) describbe an improved small sample approximation to the covariance matrix estimate of the fixed parameters in a linear mixed model.

Usage

vcovAdj(object, details=0)
LMM_Sigma_G(object, details=0)

Arguments

object
An lmer model
details
If larger than 0 some timing details are printed.

Value

  • phiAthe estimated covariance matrix, this has attributed P, a list of matrices used in KR_adjust and the estimated matrix W of the variances of the covariance parameters of the random effetcs
  • SigmaGlist: Sigma the covariance matrix of Y; G the G matrices that sum up to Sigma; n.ggamma: the number (called M in the article) of G matrices)

References

Kenward, M. G. and Roger, J. H. (1997), Small Sample Inference for Fixed Effects from Restricted Maximum Likelihood, Biometrics 53: 983-997.

See Also

getKR KRmodcomp lmer PBmodcomp vcovAdj

Examples

Run this code
(fmLarge <- lmer(Reaction ~ Days + (Days|Subject), sleepstudy))
## removing Day
(vcovAdj(fmLarge,detail=0))

Run the code above in your browser using DataLab