Question

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.

Was it helpful?

Solution

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.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top