check_inputs: Check inputs to a call to vim, cv_vim, or sp_vim

View source: R/utils.R

check_inputsR Documentation

Check inputs to a call to vim, cv_vim, or sp_vim

Description

Check inputs to a call to vim, cv_vim, or sp_vim

Usage

check_inputs(Y, X, f1, f2, indx)

Arguments

Y

the outcome

X

the covariates

f1

estimator of the population-optimal prediction function using all covariates

f2

estimator of the population-optimal prediction function using the reduced set of covariates

indx

the index or indices of the covariate(s) of interest

Details

Ensure that inputs to vim, cv_vim, and sp_vim follow the correct formats.

Value

None. Called for the side effect of stopping the algorithm if any inputs are in an unexpected format.


bdwilliamson/nova documentation built on Feb. 1, 2024, 10:04 p.m.