Description Usage Arguments Details Value Examples
View source: R/input_checker.R
This functions checks the input to the double_select function for compliance with the default methods used, confirming that the inputs are viable. It is a helper - no interaction with the user should happen unless the user explicitly calls this function.
1 2 | input_checker(X_matrix, Y_vector, W_vector, specify.custom,
test.inputs = TRUE)
|
X_matrix |
A matrix of covariates (must be all numeric) |
Y_vector |
A vector of the target variable, of same length as the number of rows of X, must be numeric |
W_vector |
A vector of the treatment variable, of same length as the number of rows of X, must be numeric |
specify.custom |
disables input checking by default, and leaves it to the user. |
test.inputs |
If set to FALSE disables input checking, the default is TRUE. |
The function will throw a warning if it is disabled ( the input is not checked) or stop the processing if the input is checked, but incorrect. Disables checking for custom functions by default.
A message indicating the status of input checking, or lack thereof.
1 2 3 4 5 6 7 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.