Skip to content
Prev 33658 / 398513 Next

[OFF] stepwise using REML???

Em Dom 22 Jun 2003 11:18, Douglas Bates escreveu:
Look this example:

Using stepwise with a ML estimation:
--------------------------------------
m0.ml <- lme(response~1,random=~1|plot1/plot2,method="ML")
mfull.ml <- update(m0.ml,.~.+v1*v2+v1*v3)
Start:  AIC= 250.23 
 response ~ v1 + v2 + v3 + v1:v2 + v1:v3 

                   Df    AIC
- v1:v3		   11 249.82
<none>                250.23
- v1:v2		    2 253.65

...

Linear mixed-effects model fit by maximum likelihood
  Data: NULL 
  Log-likelihood: -112.9370
  Fixed: response ~ v1 + v2 + v1:v2 
            (Intercept)                   v1       		   v2l2 
             12.5936495              -0.3327049             -15.9920774 
                   v2l3 	        v1:v2l2   		v1:v2l3 
            -12.5285727               0.3750894               0.3014936 

Random effects:
 Formula: ~1 | plot1
        (Intercept)
StdDev: 0.004214203

 Formula: ~1 | plot2 %in% plot1
        (Intercept)  Residual
StdDev:   0.3051747 0.5556307

Number of Observations: 124
Number of Groups: 
            plot1  plot2 %in% plot1 
                6                17 
--------------------------------------
in this case the selected model is v1*v2, but in this case it use the same 
denominator DF for all variables, and it is not true.

In anova made by REML:
--------------------------------------
m0 <- lme(response~1,random=~1|plot1/plot2)
mfull <- update(m0,.~.+v1*v2+v1*v3)
anova(mfull)
                 numDF denDF   F-value p-value
(Intercept)          1    85 126.08414  <.0001
v1                   1     8   1.86229  0.2095
v2                   2     3   1.90189  0.2928
v3                  11    85   1.58872  0.1167
v1:v2                2     8   3.53897  0.0792
v1:v3               11    85   1.71976  0.0825
---------------------------------------

In this case all variables are not significative.
Thanks for all
 ______________________________________________