使用stargazer
時,有一個參數omit.stat
,但是我需要從下面的係數值中刪除測試統計信息,它不是stargazer package documentation (PDF) (pp. 14–15)中列出的參數。有誰知道我會怎麼做呢?Stargazer忽略測試統計
對於實施例:以上
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 blog entry, Tailor Your Tables with stargazer: New Features for LaTeX and Text Output,如在第一和第二位。
呃,智能報價取代。 –