我有一些来自 STM 包的回归,我希望使用 stargazer 对其进行格式化。
log.reg.black <- estimateEffect(c(18) ~ districtpctmale + districtpctwhite + college + poverty + factor(Candidate_Gender.x) + cook + factor(year) + factor(black.y), stmobj = all_model, metadata = data)
stargazer(log.reg.black,
omit.stat = c("adj.rsq", "rsq", "ser", "f"),
omit.table.layout = "n",
column.labels = c("Topic 18"),
covariate.labels = c("District: Male", "District: White", "District: College", "District: Poverty", "Candidate Gender", "Cook Score", "Year: 2012", "Year:2014", "Candidate: Black"),
dep.var.caption = "Topics",
star.char = c(" ", " ", " "),
digits = 2,
dep.var.labels.include = F,
title = "Estimating Effects of Topic Models (Interaction)",
model.numbers = F)
但是,当我运行代码时,我收到错误:
% Error: Unrecognized object type.
我怀疑这是因为 estimateEffect() 产生的对象类型,但我不确定。关于如何使用 stargazer 格式化我的回归表或我可以使用的其他包的任何建议?首先十分感谢!