在stata面板数据分析中我输入命令构建最小二乘虚拟变量模型来分析固定效应模型是否优于最小二乘回归分析,点击enter键出现红色错误指令,不明白是什么意思,请知道原因的给我点拨一下,谢谢! 命令: xi:xtrg profit sale cost i.region,vce(cluster region)
出现的红色错误代码:unknown egen function group()
xtreg profit sale cost,fe vce(cluster region)
xtreg profit sale cost,fe
estimate store fe
xi:xtreg profit sale cost i.region,vce(cluster region)
这就是前面stata面板数据分析的几步过程,在最后一步出现了错误代码