我想使用 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 个截止点吗?
最佳答案
除了指定 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)
关于R - stargazer 4 星截止值,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45062088/