Create method argument for train of growth curve smoothers
Source:R/functions.R
makemethod_train_smooth_data.Rd
This function generates a list which is compatible to be used as the
method
argument to train. This enables users to
call train directly themselves with smooth_data
smoothing functions.
Arguments
- sm_method
Argument specifying which smoothing method should be used. Options include "moving-average", "moving-median", "loess", "gam", and "smooth.spline".
- tuneGrid
A data frame with possible tuning value. The columns should be named the same as the tuning parameters.
Note that, when using train, the tuneGrid must be passed both to this function as well as directly to train.