Learn R Programming

FRESA.CAD (version 3.3.1)

featureDecorrelation: Supervised decorrelation of dataframe features

Description

All features significatly associated to the outcome will be decorrelated

Usage

featureDecorrelation(data=NULL,Outcome=NULL,
                         refdata=NULL,baseFeatures=NULL,loops=20,
                         thr=0.80,unipvalue=0.05,useDeCorr=TRUE,...)
	
	predictDecorrelate(decorrelatedobject,testData)

Arguments

data

The dataframe whose features will de decorrelated

Outcome

The target outcome

refdata

The frame used to get the correlation and lm formula

baseFeatures

A vector of features to be used as the base vectors.

loops

the maxumum number of loops

thr

correlation threshold for feature selection

unipvalue

association p-value

useDeCorr

if TRUE, the returned matrix will use the estimated decorrelation Matrix

...

parameters passed to the adjuting method.

decorrelatedobject

The dataframe created by the featureDecorrelation function

testData

Test data to decorrelate

Value

adjustedFrame

The decorrelated data frame with the follwing attributes

topFeatures

The list of features that were decorrelated

TotalAdjustments

The count of how many times was decorrelted

DeCorrmatrix

The Decorrelation matrix for linear models

varincluded

The list of variables in the whitening matrix

baseFeatures

The list of feetures used as base features

useDeCorr

If TRUE the estimated DeCorrmatrix matrix was used for decorrelation

Details

The data-frame will be analyzed and correlated features will be decorrelated. Feature selection may be based on Outcome or by default in Top correlation

See Also

featureAdjustment