在包含有factor变量中,其中education, group为分类变量。
有如下两种回归方式:
regress y distance education##group
xi: regress y distance i.education*i.group
两者在结果上是等价的。
通常用哪种方式?其还有哪些细微差别?
加前缀xi有哪些便捷之处?为什么xi中显示
run command after expanding factor variables and interactions; for most commands, using factor variables is preferred to using xi