0

I am running a Generalized Additive Model from the mgcv package

I would like to display the deviance explained in the table instead of just the R-squared with the modelsummary package, how can I accomplish this?

modelsummary(models,
             estimate = "estimate",
             stars = TRUE,              
             statistic = c("Std.Error" = "std.error", 
                           "t-value" = "statistic"))
nerd
  • 473
  • 5
  • 15
  • 1
    The `modelsummary` website includes a very detailed vignette explaining how one can include additional goodness-of-fit statistics: https://vincentarelbundock.github.io/modelsummary/articles/modelsummary.html#new-models-and-custom-statistics – Vincent Mar 08 '23 at 12:44
  • 1
    Also see this near duplicate: https://stackoverflow.com/questions/75545942/model-summary-and-diagnostics-for-instrumental-variables-in-r – Vincent Mar 08 '23 at 12:45

0 Answers0