Skip to main content
deleted 30 characters in body; edited title
Source Link
Stéphane Laurent
  • 19.7k
  • 5
  • 76
  • 109

Mixed model runs well in R whereas a random effect has only one level

How do you explain that ? There's only one operator but the mixed model returns an estimate for the operator random effect. Furthermore the sample effect is confounded with the interaction sample:operator. Below is the R code and SAS give the same results.

Mixed model runs well whereas a random effect has only one level

How do you explain that ? There's only one operator but the mixed model returns an estimate for the operator random effect. Furthermore the sample effect is confounded with the interaction sample:operator. Below is the R code and SAS give the same results.

Mixed model runs well in R whereas a random effect has only one level

How do you explain that ? There's only one operator but the mixed model returns an estimate for the operator random effect. Furthermore the sample effect is confounded with the interaction sample:operator. Below is the R code.

edited title
Link
user88
user88

mixed Mixed model runs well whereas a random effect has only one level

added 264 characters in body
Source Link
Stéphane Laurent
  • 19.7k
  • 5
  • 76
  • 109

For those who are more familiar with SAS the corresponding code is:

PROC MIXED DATA=dd;
CLASS sample operator;
MODEL y=;
RANDOM sample operator sample*operator;
RUN;

This is nothing but the crossed 2-way ANOVA with random effects.

For those who are more familiar with SAS the corresponding code is:

PROC MIXED DATA=dd;
CLASS sample operator;
MODEL y=;
RANDOM sample operator sample*operator;
RUN;

This is nothing but the crossed 2-way ANOVA with random effects.

Source Link
Stéphane Laurent
  • 19.7k
  • 5
  • 76
  • 109
Loading