checkInputData: Check Input Data for srlars Function

View source: R/checkInputData.R

checkInputDataR Documentation

Check Input Data for srlars Function

Description

Internal helper function to validate arguments passed to srlars. Checks types, dimensions, and logical constraints.

Usage

checkInputData(
  x,
  y,
  n_models,
  tolerance,
  max_predictors,
  x_preprocess,
  y_preprocess,
  cor_estimator,
  cv_preprocess,
  cv_loss,
  cv_fit,
  cv_folds,
  compute_coef,
  max_share = NULL,
  n_min = NULL
)

Arguments

x

Design matrix.

y

Response vector.

n_models

Number of models in the ensemble.

tolerance

Relative improvement tolerance for stopping.

max_predictors

Maximum total number of variables to select.

x_preprocess

X cleaning method.

y_preprocess

y cleaning method.

cor_estimator

Correlation method.

cv_preprocess

Foldwise or global CV.

cv_loss

Arbiter loss function.

cv_fit

Arbiter fit function.

cv_folds

Number of CV folds.

compute_coef

Logical.

max_share

Maximum number of sub-models a variable may appear in. NULL skips this check.

n_min

Minimum number of variables each sub-model is guaranteed. NULL skips this check.

Value

NULL. Stops execution with an error message if invalid inputs are detected.


srlars documentation built on Sept. 23, 2026, 5:10 p.m.