I have an example regression table in R that was created using the stargazer package:
ctl <- c(4.17,5.58,5.18,6.11,4.50,4.61,5.17,4.53,5.33,5.14)
trt <- c(4.81,4.17,4.41,3.59,5.87,3.83,6.03,4.89,4.32,4.69)
group <- gl(2, 10, 20, labels = c("Ctl","Trt"))
weight <- c(ctl, trt)
lm.D9 <- lm(weight ~ group)
se1 <- round(coeftest(lm.D9, vcov = vcovHC(lm.D9, type="HC1"))[,2],4)
stargazer(mod1,
se=list(se1),keep.stat="n", type="text",
add.lines = list(c("Method","OLS"),
c("HR Robust","True True True")))
with the Stargazer output:
========================================
Dependent variable:
---------------------------
workedm
----------------------------------------
morekids -0.115***
(0.002)
Constant 0.575***
(0.001)
----------------------------------------
Method OLS
HR Robust True True True
Observations 266,928
========================================
Note: *p<0.1; **p<0.05; ***p<0.01
I would like to shift the Observations
row above Method
and HR Robust
. Additionally, I would like to indent each "True True True"
portion so that each True
is on top of the other:
...
Method OLS
HR Robust True
True
True
Observations 266,928
...
Is there a way to do this? Thanks!