View source: R/data_prep_utils.R
data_screen | R Documentation |
This function takes a matrix of data and removes 1. Variables without variation 2. Dummy variables where one group is nearly empty (optional in one of both treatment groups) 3. Redundant (highly correlated variables)
data_screen(data, treat = NULL, bin_cut = 0.01, corr_cut = 0.99, print = FALSE)
data |
Matrix the variables to be screened. |
treat |
Optional binary treatment vector if screening should be done within treatment groups |
bin_cut |
Cut-off fraction under which nearly empty binary variables should be removed. Default 0.01. |
corr_cut |
Cut-off above which highly correlated varialbes should be removed. Default 0.99. |
print |
Shows details about the reomved variables at each step |
Screened matrix
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.