1

Please, how can I do Wald test (heteroskedasticity) and autocorrelation test (from Wooldridge) in R?

I'm using Pooled OLS, Fixed Efects and Random Efects with library(plm) in a unbalanced panel.

Thanks.

RxT
  • 486
  • 7
  • 17
  • 1
    See `lmtest::waldtest` and look at `vignette("plm")` for all the details, especially section 6. –  May 02 '18 at 21:49

1 Answers1

0

Here is a link that provides directions how to perform the heteroskedasticity tests you are looking for using lme and lmtest packages. There are many comments and recommendations:

http://people.tamu.edu/~b-wood/Maximum%20Likelihood/RLesson%204.htm

As for specifically plm package: You can find some examples here Waldtest in R to get adjust F statistic with plm and result shown with stargazer? and looking at the documentation of plm package. The plm package states: In plm we provide a number of joint, marginal and conditional ml-based tests, plus some semi-parametric alternatives which are robust vs. heteroskedasticity and free from distributional assumptions.

You should also look into lfe package: https://cran.r-project.org/web/packages/lfe/lfe.pdf

Katia
  • 3,784
  • 1
  • 14
  • 27