PCA_reduce: PCA Dimension Reduction

Description Usage Arguments Examples

View source: R/variable_selection.R

Description

PCA_reduce is used for PCA reduction of high demension data .

Usage

1
PCA_reduce(train = train, test = NULL, mc = 0.9)

Arguments

train

A data.frame with independent variables and target variable.

test

A data.frame of test data.

mc

Threshold of cumulative imp.

Examples

1
2
3
4
5
6
## 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)

creditmodel documentation built on Jan. 7, 2022, 5:06 p.m.