R - stargazer 4星级截止

时间:2017-07-12 15:35:32

标签: r regression stargazer

我想使用4 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)

似乎只能获得3星级的截止点。

有任何想法可以获得4次截止吗?

1 个答案:

答案 0 :(得分:2)

除了指定star.cutoffs之外,您还应具体说明star.char

这对我来说很好用:

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)