Supporting function for functions full_subsets_gam and fit_model_set. Not called directly.
Details
Generates an updated model fit based on the supplied formula. This wrapper was required to allow full_subsets_gam and fit_model_set to be applied to dsm models
Examples
library(mgcv)
data(case_study1)
base.fit <- gam(Herbivore.abundance ~ s(depth, k = 3, bs = "cr"),
family = tw(), data = case_study1)
fit_mod_l(formula.l = ~ s(complexity, k = 3, bs = "cr"),
test.fit. = base.fit, use.dat = case_study1)
#>
#> Family: Tweedie(p=1.284)
#> Link function: log
#>
#> Formula:
#> Herbivore.abundance ~ s(complexity, k = 3, bs = "cr")
#>
#> Estimated degrees of freedom:
#> 1.79 total = 2.79
#>
#> REML score: 262.1906