extract.features: Feature Extraction

Description Usage Arguments Value

Description

Extracts features from models that have been previously fit.

Usage

1
2
extract.features(x, dat = NULL, grp = NULL, method,
  model.features = FALSE, bestTune = NULL, f, comp.catch = NULL)

Arguments

x

Previously fitted model

dat

Numeric variable data used for fitted models (In appropriate format)

grp

Vector of training classes

method

String indicating the INDIVIDUAL model being extracted from

model.features

Logical argument dictating if features selected determined by models instead of user determined number of features.

bestTune

If model.features = TRUE, must provide the parameter at which to extract features from the model.

f

Number of features to subset

comp.catch

An internal check for plsda models. If the optimal model contains only 1 component, the ncomp paramter must be set to 2 for the model. However, features are still extracted only from the first component.

Value

Returns list of the features selected from the fitted model.


cdeterman/OmicsMarkeR documentation built on May 13, 2019, 2:35 p.m.