Jacob Warren (RIT Student <jjw3952 <at> rit.edu> writes: > > Using lme4 how does one define a 2 factor factorial model with both factors > being random? > > Specifically I am just trying to recreate the results from Montgomery's > Design of Experiments book (7th edition), example 13.2. In this example > there are 2 random factors and I want to include the interaction in the > model as Montgomery tests for significance in the full model first. I've > tried several things but cannot recreate the results in R. I would think > something like what's given below would work, but it does not. > > lmer(y ~ (1 | Parts) + (1 | Operators) + (1 | Parts:Operators) ) >
You also posted this on StackOverflow (broken URL to make Gmane happy, sorry): <http://stats.stackexchange.com/questions/129592/ 2-factor-factorial-model-with-random-factors>. While cross-posting between SO and R mailing lists isn't explicitly forbidden, I think it's polite to indicate you've done so/cross-link. On SO, I asked for more information -- not all of us have immediate access to Montgomery's book (maybe you can provide a Google books link if the text is accessible that way?). SO or r-sig-mixed-mod...@r-project.org are probably more appropriate follow-up venues. Ben Bolker ______________________________________________ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.