I have estimated a linear regression model using lm(x~y1 + y1 + ... + yn)
and to counter the present heteroscedasticity I had R estimate the robust standard errors with
coeftest(model, vcov = vcovHC(model, type = "HC0"))
I know that (robust) R squared and F statistic from the "normal" model are still valid, but how do I get R to report them in the output? I want to fuse several regression output from different specifications together with stargazer
and it would become very chaotic if I had to enter the non-robust model along just to get these statistics. Ideally I want to enter a regression output into stargazer
that contains these statistics, thus importing it to their framework.
Thanks in advance for all answers
lmtest::coeftest
? – r2evans