A wrapper function to fit final (best) Generalized Additive Model (GAM) from an object of class autoGAM_frame.

autoGAM_fit(object)

Arguments

object

An object of class autoGAM_frame.

Value

Adds the final fitted model to the autoGAM_frame and prints out the summary of the final fit.

See also

Author

Shahin Roshani

Examples

if (FALSE) { my_mtcars <- mtcars %>% mutate_at('vs',as.factor) carsGAM <- autoGAM_frame(mpg~disp+drat+vs,data=my_mtcars) autoGAM_fit(carsGAM) backward_select(carsGAM) %>% autoGAM_fit }