makemethod_train_smooth_data {gcplyr} | R Documentation |
caret::train
of growth curve smoothersThis function generates a list which is compatible to be used as the
method
argument to caret::train
. This enables users to
call caret::train
directly themselves with smooth_data
smoothing functions.
makemethod_train_smooth_data(sm_method, tuneGrid = NULL)
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 |
A list that can be used as the method argument to
caret::train
. Contains elements:
library
, type
, prob
, fit
,
parameters
, grid
, fit
, and predict
.
See documentation on using a custom model model in
caret::train
for more details.