首先感谢modelsummary包的创建者——非常有用!
我有一个关于fmt
统计和估计不同的问题?这是一个代表:
url <- 'https://vincentarelbundock.github.io/Rdatasets/csv/HistData/Guerry.csv'
dat <- read.csv(url)
models <- list(
"OLS 1" = lm(Donations ~ Literacy + Clergy, data = dat),
"Poisson 1" = glm(Donations ~ Literacy + Commerce, family = poisson, data = dat),
"OLS 2" = lm(Crime_pers ~ Literacy + Clergy, data = dat),
"Poisson 2" = glm(Crime_pers ~ Literacy + Commerce, family = poisson, data = dat),
"OLS 3" = lm(Crime_prop ~ Literacy + Clergy, data = dat)
)
modelsummary(models)
modelsummary(models, output = "flextable", estimate=glue_col("{estimate}{stars}"),
statistic = 'statistic', stars = c('*' = .1, '**' = .05, '***'=0.01))
如何使系数下的 t 统计量具有 2 个有效数字和估计值 3?所以第一个系数统计对将是:7948.667 (2078.27)
我仔细阅读了文档,但没有找到答案。先感谢您!