Frage

I know that in eviews, after you run a regression you can select the option to use the White Correction for heteroskedasticity. However, I cannot find any way to use the White correction in R. Eviews is unnecessarily difficult when it comes to importing data (pretty much the worst GUI ever) and so I have decided to not use eviews ever again.

Is there any way to use the White correction for heteroskedasticity in R? Thanks in advance for any help.

War es hilfreich?

Lösung

library(car)
library(lmtest)
coeftest(mymodel, vcov= hccm(mymodel))
Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top