dython
dython copied to clipboard
cramers_v_weighted
The weighted correlation feature for categorical variables is missing in Cramer's V, and this feature helps to give weightage to certain rows.
Adding weightage to certain rows depending on the target variable is a regular process in the retail/sales industry when it comes to correlation and incorporating this feature for categorical correlation is a huge plus.
Doesn't account for weighted correlation (can be incorporated in cramers'V for categorical variables)
This change needs to be added as a separate function in nominal.py where the weight variable needs to be added at crosstab