Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个大面板,我通过 plm 估计具有固定效果。
例如
Test.fe <- plm( Y ~ x1+x2, data=test, model="within")
我曾经summary(Test.fe)打印估计结果并获得固定效果,可以使用fixef.
summary(Test.fe)
fixef
但现在我的问题是:如何绘制估计的 Y 值以与我的实际 Y 值进行比较?
谢谢。
获取拟合值的简单方法
fitted.panelmodel <- plm(object, ...) object$model[[1]] - object$residuals
目前没有更好的方法。