Skip to content
Prev 14642 / 20628 Next

lme function - fixed sigma - inconsistent results with sae and proc mixed results

Correct. Actually, I was very surprised to hear about the 'sigma' control argument being availble in R. That used to be only available in the S-Plus version of lme(). In fact, I just tried running that model in S-Plus and this is what I got:

Linear mixed-effects model fit by REML
 Data: dat 
      AIC      BIC   logLik 
  6.02487 14.34268 1.987565

Random effects:
 Formula:  ~ 1 | SmallArea
        (Intercept) Residual 
StdDev:   0.1361994        1

Variance function:
 Structure: fixed weights
 Formula:  ~ var 
Fixed effects: yi ~ as.factor(MajorArea) 
                           Value  Std.Error DF   t-value p-value 
          (Intercept)  0.9977953 0.03179340 39  31.38373  <.0001
as.factor(MajorArea)1  0.0663901 0.05150041 39   1.28912  0.2050
as.factor(MajorArea)2  0.0535187 0.02659572 39   2.01230  0.0511
as.factor(MajorArea)3 -0.0903025 0.01466646 39  -6.15707  <.0001
 Correlation: 
                      (Intr) a(MA)1 a(MA)2 
as.factor(MajorArea)1  0.075              
as.factor(MajorArea)2 -0.157 -0.060       
as.factor(MajorArea)3 -0.392 -0.054  0.113

Standardized Within-Group Residuals:
       Min         Q1       Med        Q3     Max 
 -1.702152 -0.2304439 0.2200099 0.3981538 1.22415

Number of Observations: 43
Number of Groups: 43
[1] 0.01855028

So that matches what we get from the other packages.

I am curious -- why do you want to use lme() for fitting F-H models anyway? Why not stick to 'sae'?

Best,
Wolfgang