Learn R Programming

srlars (version 2.0.0)

checkInputData: 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, robust, compute_coef)

Value

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

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.

robust

Logical.

compute_coef

Logical.