Luca Deckert
2011-Jul-28 08:37 UTC
[R] Fixed effects using Within transformation in PLM package
Hi all,
I am trying to do my own fixed effects regression using the Within function
in PLM. I apply the Within function to all my pseries and then run OLS on
the transformed vectors using lm().
When I compare the results to those obtained via plm ("within"), the
estimates are not always the same. Specifically, if there are missing values
(NA), the parameter estimates are not the same. I am aware that standard
errors and degrees of freedom have to be corrected. However, as far as I
know the parameter estimates should be the same.
Is R doing any specific correction for the missing values?
I really appreciate any comments on this.
Regards,
Luca
[[alternative HTML version deleted]]
Luca Deckert
2011-Jul-28 13:21 UTC
[R] Fixed effects using Within transformation in PLM package
Dear R community,
I am trying to do my own fixed effects regression using the Within function
in PLM. I apply the Within function to all my pseries and then run OLS on
the transformed vectors using lm().
When I compare the results to those obtained via plm ("within"), the
estimates are not always the same. Specifically, if there are missing values
(NA), the parameter estimates are not the same. I am aware that standard
errors and degrees of freedom have to be corrected. However, as far as I
know the parameter estimates should be the same.
Is R doing any specific correction for the missing values?
I really appreciate any comments on this.
Regards,
Luca
[[alternative HTML version deleted]]
Seemingly Similar Threads
- "Within" model in plm package: is the reported R-squared correct?
- Panel models: Fixed effects & random coefficients in plm
- Panel Data Analysis (PLM) - Fixed Effects - "cannot allocate vector of length"
- plm issues: error for "within" or "random", but not for "pooling"
- PLM package PGGLS strange behavior