Closed roxannebeauclair closed 6 years ago
There is support for mgcv gam objects. Did you try the newest version of broom?
I was mistaken, the functions work in some situations, because the objects returned from mgcv::gam
and gam::gam
are both of class gam
.
This got added at some point!
m <- mgcv::gam(mpg ~ s(hp), data = mtcars)
broom::tidy(m)
#> Warning: package 'bindrcpp' was built under R version 3.4.4
#> term edf ref.df statistic p.value
#> 1 s(hp) 2.618499 3.262509 26.25636 2.289197e-10
This issue has been automatically locked. If you believe you have found a related problem, please file a new issue (with a reprex: https://reprex.tidyverse.org) and link to this issue.
Greetings,
I see that broom is compatible with the gam package. Is it possible to also do so with the mgcv package for generalised additive models?
Warm regards, Roxy