Check inputs to a call to vim, cv_vim, or sp_vim
check_inputs(Y, X, f1, f2, indx)
the outcome
the covariates
estimator of the population-optimal prediction function using all covariates
estimator of the population-optimal prediction function using the reduced set of covariates
the index or indices of the covariate(s) of interest
None. Called for the side effect of stopping the algorithm if any inputs are in an unexpected format.
Ensure that inputs to vim
, cv_vim
, and sp_vim
follow the correct formats.