我想使用 4star.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 个截断吗?
除了指定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)