Chapter 20 REML Estimation of Variance Components

Consider the GLM: y=Xβ+ϵ, where ϵN(0,Σ) and Σ is an n×n positive definite variance matrix which depends on an unknown parameter vector γ.

Residual/Restricted Maximum Likelihood (REML): an approach that produces unbiased estimators for these special cases and produces less biased estimates than ML in general.

REML Method
  1. Find nrank(X)=nr linearly independent vectors a1,,anr such that aiX=0 for all i=1,,nr.

  2. Find the MLE of γ using w1a1y,,wnranry as data. A=[a1,,anr]w=[w1wnr]=[a1yanry]=Ay

    • If aX=0, ay is known as error contrast. Thus, w1,,wnr comprise a set of nr error constrasts

    • There exist nr linearly independent rows of IPX to get a1,,anr.

    • The error constrasts w1,,wnr will be a subset of the elements of the residual vector (IPX)y=yˆy

Note that w=Ay=AϵN(0,AΣA) and the distribution of w depends only on γ.

The log likelihood function in this case is (γw)=12log|AΣA|12w(AΣA)1wnr2log(2π) An MLE of γ can be found in the general case using numerical methods to obtain the REML estimate of γ.

In 611, we show that every set of nr linearly independent error contrasts yields the same REML estimator of γ.

In any case, once a REML estimate of γ has been obtained, the BLUE of an estimate Cβ can be approximated by CˆβˆΣ=C(XˆΣ1X)XˆΣ1y, where ˆΣ is Σ with ˆγ (the REML estimate of γ) in place of γ.

Example in Chapter 19
lme(SeedlingWeight ̃Genotype,random= ̃1|Tray,data=d)

Linear mixed-effects model fit by REML
  Data: d
  Log-restricted-likelihood: -123.5705
  Fixed: SeedlingWeight  ̃ Genotype
(Intercept)   Genotype2
  15.288838   -3.550201
Random effects:
 Formula:  ̃1 | Tray
        (Intercept) Residual
StdDev:    3.414856  1.88223
Number of Observations: 56
Number of Groups: 8


lmer(SeedlingWeight ̃Genotype+(1|Tray),data=d)

Linear mixed model fit by REML [’lmerMod’]
Formula: SeedlingWeight  ̃ Genotype + (1 | Tray)
   Data: d
REML criterion at convergence: 247.1411
Random effects:
 Groups   Name        Std.Dev.
 Tray   (Intercept)   3.415
 Residual             1.882
Number of obs: 56, groups: Tray, 8
Fixed Effects:
(Intercept)    Genotype2
      15.29        -3.55

In SAS, REML is also the default for SAS proc mixed.