init_gam: Initialize a gam model

Description Usage Arguments Value

Description

Creates an object designed to be passed to init_stacker that describes an gam::gam model be added to the stacking ensemble.

Usage

1
2
init_gam(model_name = "gam", arguments = list(spline_args = list(bs = "ts",
  k = 3)), formula = NULL)

Arguments

model_name

name of the gam model

arguments

named list. Arguments to be passed to the gan function. See ??mgcv::gam for more information

formula

formula or formula-like. Formula to be passed to the gam call that overwrites the underlying formula builder. This is useful if you want to have different covariates recieve different smoothing instructions

Value

named list of lists with the parameters required to run an gam model


dahcase/mbgstacking documentation built on May 20, 2019, 4:08 p.m.