`library(TangledFeatures)`

We attempt to link similar features on the basis of correlation. TangledFeatures automatically detects the type of correlation needed between two features. We currently generate the correlations between numeric, unordered categorical variables and ordered categorical variables You can set the correlation type based upon the data set you have within the package.

You can also generate the correlation heat map for the entire data set as well as the interconnected network graph

- Numeric-to-Numeric Correlation: Set by the cor1 metric. Currently it defaults to Pearson correlation
- Numeric-to-Factor(Unordered): Set by the cor2 metric. Currently it defaults to PointBiserial correlation
- Numeric-to-Factor(Ordered): Set by the cor3 metric. Currently it defaults to Kendall correlation
- Factor(Unordered)-to-Factor(Ordered) Set by the cor3 metric. Currently it defaults to a chi Squared test
- Factor(Unordered)-to-Factor(Unordered) Set by the cor3 metric.
Currently it defaults to Cramerâ€™s V

- Factor(Ordered)-to-Factor(Ordered) Set by the cor3 metric. Currently it defaults to Polychoric correlation

Set plot = TRUE in the initial function

We can generate the heat map from the final TangledFeatures object

```
<- TangledFeatures(Data)$Correlation_heatmap
plot_obj plot(plot_obj)
```

We can generate the interconnected graph as well

```
<- TangledFeatures(Data)$Graph_plot
plot_obj plot(plot_obj)
```