简体   繁体   English

R-观星者4星极限

[英]R - stargazer 4 star cutoffs

I would like to use 4 star.cutoffs -- c(0.1, 0.05, 0.01, 0.001) -- using stargazer . 我想使用4 star.cutoffs - c(0.1, 0.05, 0.01, 0.001) star.cutoffs c(0.1, 0.05, 0.01, 0.001) -使用stargazer

library(stargazer) 

m1 = lm(disp ~ mpg, data = mtcars) 
stargazer(m1, type = 'text', star.cutoffs = c(0.1, 0.05, 0.01, 0.001), digits = 2)

It seems that it is only possible to get 3 star cutoffs. 看来只能获得3星截止。

Any idea to get 4 cut offs? 任何想法获得4截止?

In addition to specifying star.cutoffs you should also specificy star.char . 除了指定star.cutoffs之外,还应该指定star.char

This works fine for me: 这对我来说很好:

stargazer(model1, model2,
          type = "text",
          star.char = c("+", "*", "**", "***"),
          star.cutoffs = c(0.1, 0.05, 0.01, 0.001),
          notes = c("+ p<0.1; * p<0.05; ** p<0.01; *** p<0.001"), 
          notes.append = F)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM