dummy_regressor_caret: dummy regressor for a numerical variable, used in the train...

View source: R/dummy_regressor_caret.R

dummy_regressor_caretR Documentation

dummy regressor for a numerical variable, used in the train function in caret.

Description

dummy regressor for a numerical variable, used in the train function in caret.

Usage

dummy_regressor_caret(strategy = "mean", quantile = NULL, constant = NULL)

Arguments

strategy

a strategy from "constant", "mean", "median", or "quantile".

quantile

used when using the quantile strategy. It is a value between 0 and 1.

constant

used when using the constant strategy. It is a numeric value.

Value

a list containing information of the model.


basemodels documentation built on Aug. 9, 2023, 9:09 a.m.