monotonic_regression.Rd
Monotonic Regression using XGBoost, LightGBM, or SCAM
monotonic_regression(
x,
y,
method = c("xgboost", "lightgbm", "scam"),
monotonicity = 1,
prediction = TRUE,
strict = FALSE,
...
)
Numeric vector or matrix of predictor variables
Numeric vector of response variable
Either "xgboost", "lightgbm", or "scam"
1 for non-decreasing, -1 for non-increasing
A boolean; obtain predictions on training set (TRUE) or return model object
If TRUE, enforces strict monotonicity (for xgboost/lightgbm only; scam is always strict)
Additional parameters passed to the underlying algorithm
A list with fitted values and model object