Philipp Schulz
Philipp Schulz

Reputation: 193

Modelsummary package does not show F Value

I try to use the modelsummary package to get regression tables but it does not show the F value.

When i try to reproduce the example code from https://modelsummary.com/articles/modelsummary.html

it does not work either.


library(gt)
library(kableExtra)
library(modelsummary)



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)

If i run a single model and use get_gof it does not show the F-Value. If i use the stargazer package as an alternative there are no problems to show the desired value but the stargazer output table do not look very nice if i render my quarto file.

Upvotes: 1

Views: 57

Answers (0)

Related Questions