PCA_reduce {creditmodel} | R Documentation |
PCA_reduce
is used for PCA reduction of high demension data .
PCA_reduce(train = train, test = NULL, mc = 0.9)
train |
A data.frame with independent variables and target variable. |
test |
A data.frame of test data. |
mc |
Threshold of cumulative imp. |
## Not run:
num_x_list = get_names(dat = UCICreditCard, types = c('numeric'),
ex_cols = "ID$|date$|default.payment.next.month$", get_ex = FALSE)
PCA_dat = PCA_reduce(train = UCICreditCard[num_x_list])
## End(Not run)