dummy_regressor_caret {basemodels} | R 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.
[Package basemodels version 1.1.0 Index]