selectFeature: Select features of dataset

Description Usage Arguments Value Examples

View source: R/selectFeature.R

Description

Using different strategies to select features of data.

Usage

1
selectFeature(data, method = "VAR", select_number = 1)

Arguments

data

A data matrix.

method

A string means the method of feature selection, choosing from "MAD", "VAR" and "PCA". "MAD": using median absolute deviation to select features. "VAR": select features according to the variance of each feature. "PCA": using principal component analysis to select features.

select_number

A real value from 0 to 1 which means the ratio of features we want to select. For "PCA", this parameter indicates the number of features to be selected instead of the ratio.

Value

The data matrix after feature selection.

Examples

1
2
data(COAD_Methy)
COAD_Methy <- selectFeature(COAD_Methy, method = 'VAR', select_number = 0.7)

GaoLabXDU/CEPICS documentation built on June 9, 2020, 2:31 a.m.