使用时stargazer
有一个参数,omit.stat
但是我需要从我的系数值下方删除测试统计数据,并且它不是stargazer 包文档 (PDF) (pp. 14–15)中列出的参数。有谁知道我会怎么做?
例如:
install.packages('stargazer'); library(stargazer)
linear.1 <- lm(rating ~ complaints + privileges + learning + raises + critical,
data=attitude)
linear.2 <- lm(rating ~ complaints + privileges + learning, data=attitude)
attitude$high.rating <- (attitude$rating > 70)
probit.model <- glm(high.rating ~ learning + critical + advance,
data=attitude, family = binomial(link = "probit"))
stargazer(linear.1, linear.2, probit.model, title="Regression Results",
align=TRUE, dep.var.labels=c("Overall Rating","High Rating"),
covariate.labels=c("Handling of Complaints","No Special Privileges",
"Opportunity to Learn","Performance-Based Raises","Too Critical",
"Advancement"), omit.stat=c("LL","ser","f"), no.space=TRUE)
上面给了我一个包含测试统计数据的表格,我想完全省略它。以下用置信区间替换它们,但这并没有更好。
stargazer(linear.1, linear.2, title="Regression Results",
dep.var.labels=c("Overall Rating","High Rating"),
covariate.labels=c("Handling of Complaints","No Special Privileges",
"Opportunity to Learn","Performance-Based Raises",
"Too Critical","Advancement"), omit.stat=c("LL","ser","f"),
ci=TRUE, ci.level=0.90, single.row=TRUE)
这些表格可以在R-statistics 博客条目Tailor Your Tables with stargazer: New Features for LaTeX and Text Output中看到,分别作为第一和第二。