View source: R/add_dummies_GVS.R
add_dummies_GVS | R Documentation |
Generate num_dummies dummy predictors as required for the T-Rex+GVS selector (\Sexpr[results=rd]{tools:::Rd_expr_doi("10.23919/EUSIPCO55093.2022.9909883")}) and append them to the predictor matrix X.
add_dummies_GVS(X, num_dummies, corr_max = 0.5)
X |
Real valued predictor matrix. |
num_dummies |
Number of dummies that are appended to the predictor matrix. Has to be a multiple of the number of original variables. |
corr_max |
Maximum allowed correlation between any two predictors from different clusters. |
Enlarged predictor matrix for the T-Rex+GVS selector.
set.seed(123)
n <- 50
p <- 100
X <- matrix(stats::rnorm(n * p), nrow = n, ncol = p)
add_dummies_GVS(X = X, num_dummies = p)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.