问题
I want to design a nested model. It is kind of difficult to explain so I drew a picture.
![](https://www.eimg.top/images/2020/03/20/50d567f6fb68f7b41261507acd9d5f04.jpg)
All of the factors are fixed and there are 2 levels (0, 1) in each of them. A and B have nested factors C and D. E and F are independent with these guys and are crossed all over. I would like to know the interactions between them.
I know that I can do this in R, for one nested factor:
out <- lm(Y ~ A + A/B)
But how can I do it when there are several nested factors, and there are other independent factors? Thank you very much!
来源:https://stackoverflow.com/questions/26224877/two-fixed-factors-nested-and-crossed-factors-in-r