Description Usage Arguments Details Examples
View source: R/gini_impurities.R
Identify group weighted gini impurities using pairs of columns within a dataset. Can be used to located hierarchical data, or 1-1 correspondences
1 | gini_impurities(dt, wide = FALSE, verbose = FALSE)
|
dt |
A data.table with at least two columns |
wide |
Should the results be in wide format? |
verbose |
Should progress be printed to the screen? |
For pairs of columns (Var1, Var2) in a dataset, calculates the weighted gini impurity of Var2 relative to the groups determined by Var1
1 2 3 | library(data.table)
gini_impurities(alientrain)
gini_impurities(alientrain, wide=TRUE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.