Two fixed factors nested and crossed factors in R

杀马特。学长 韩版系。学妹 提交于 2019-12-11 03:47:45

问题


I want to design a nested model. It is kind of difficult to explain so I drew a picture.

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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!