I'm trying to print the following model in R
a = subset(control, Content=="Support")
lm_control<-lm(value~Race+Income+Potential+age+gender+ethnicity+hhi+hispanic+political_party+education+population_density,data=a)
lm_control_vcov<-vcovCL(lm_control,cluster = a$ResponseId)
Using sandwich and stargazer to regression with robust clustered standard errors. My stargazer code looks like this:
stargazer(lm_control,
se = list(sqrt(diag(lm_control_vcov))),
title = "Control Regression Model",
dep.var.labels.include = FALSE,
covariate.labels = c("Race","Community Income","Potential", "age","gender","ethnicity","hhi"," hispanic ","political party", "education","population density"),
omit.stat = c("adj.rsq", "rsq", "ser", "f"),
star.char = c("*", "**", "***"),
star.cutoffs = c(0.1, 0.05, 0.01),
omit.table.layout = "ln",
type = "latex",
header = FALSE)
and prints the following output:
Regression Table with Multiple Outputs
As you can see, it prints the variables "Political Party", "education" and "population density" twice. Previous posts on the topic tend to focus on tables that display multiple models or that display interactions-neither of which is happening here.
Any advice?
Thank you!
I've tried changing variable names and checked all other posts on the topic.