GeneralCor: Generalized Correlation function
Description
Generalized Correlation function
Usage
GeneralCor(df, cor1 = "pearson", cor2 = "polychoric", cor3 = "spearman")
Value
Returns a correlation matrix containing the correlation values between the features
Arguments
- df
The imported Data Frame
- cor1
The correlation metric between two continuous features. Defaults to pearson
- cor2
The correlation metric between one categorical feature and one cont feature. Defaults to biserial
- cor3
The correlation metric between two categorical features. Defaults to Cramers-V
Examples
Run this codeGeneralCor(df = TangledFeatures::Advertisement)
Run the code above in your browser using DataLab