对R软件mlogit包的用法帮助看得云里雾里,盼望得到指点.
希望能用下面的实例进行解说:
变量依次为:School、Program 、 Style 、 Count,具体数据如下:
1 regular self 10
1 regular team 17
1 regular class 26
1 afternoon self 5
1 afternoon team 12
1 afternoon class 50
2 regular self 21
2 regular team 17
2 regular class 26
2 afternoon self 16
2 afternoon team 12
2 afternoon class 36
3 regular self 15
3 regular team 15
3 regular class 16
3 afternoon self 12
3 afternoon team 12
3 afternoon class 20
目标:分析Style (三个分类) 与变量School、Program、 School*Program 的关系。
问题:用R软件的mlogit应该如何实现?