autoGAM_fit: autoGAM_fit

Description Usage Arguments Value Author(s) See Also Examples

View source: R/autoGAM_fit.R

Description

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

Usage

1
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.

Author(s)

Shahin Roshani

See Also

https://shahin-roshani.github.io/autoGAM/articles/autoGAM.html

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
## Not run: 

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


## End(Not run)

Shahin-Roshani/autoGAM documentation built on Dec. 18, 2021, 1:05 p.m.