I have a large panel which I am estimating via plm with fixed effects.

For example

Test.fe <- plm( Y ~ x1+x2, data=test, model="within")

I used summary(Test.fe) to print the estimating results and to get the fixed effects, it is possible to use fixef.

But now my question: How can I plot the estimated Y values to compare with my real Y values?

Thanks.

有帮助吗?

解决方案

A simple way to get the fitted values

 fitted.panelmodel <- plm(object, ...)
 object$model[[1]] - object$residuals

There is currently no better method for that.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top