I'm using R, and I always use stargazer
to produce the final result of my regressions. At the bottom of the table, stargazer provides you with the contents, such as observations and R^2. It looks like this and looks professional.
I'm running a linear probability model (since I have a binary dependent variable). The process basically runs a linear model first (so we have functions like lm1 <- lm(y ~ x, data)
), and then to get a result with robust standard errors (so here we have things like lm1_robust <- coeftest(lm1, vocv = vcovHC(lm1, type = "HC1"))
.
Looks simple! But in the second step, we have only dealt with the coefficients, so if I use stargazer
again for the lm1_robust
, only the coefficients show up, but the bottom section disappears.
Is there anything I can do to deal with this issue? Although observations are relatively easy to get, R^2 and F statistics are not.
Thank you in advance!