Description Usage Arguments Value
View source: R/addPredictorCorrelatedFeatures.R
Add features that are correlated with a set of elastic net predictors.
1 | addPredictorCorrelatedFeatures(enResults, dataMatList, corThreshold = 0.8)
|
enResults |
an elastic net results object. |
dataMatList |
a list of matrices with feature data organized along the rows, and feature names accessible via rownames(dataMatList). These matrices must contain data for all features used in the original elastic net call. |
corThreshold |
a correlation threshold. |
an elastic net results object containing all data in the enResults parameter, plus two added elements:
predictorCorFeatures is a list of character vectors indexed by predictor name. Each character vector associated with a predictor contains the names of all features correlated above corThreshold with that predictor. (Correlations are with respect to features used as input to the original elastic net call, as recorded in rownames(enResults$featureWtMat).)
predictorsAndCorFeatures is a character vector containing all predictors together with features correlated with them above corThreshold.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.