Measures several indicators per group
Value
An array of three dimensions with the mean, standard deviation
(sd()), and median absolute deviation (mad()) of the numeric variables, the
entropy of the categorical and the number of NA by each subgroup.
See also
If you have already an index you can use use_index().
Other functions to evaluate samples:
evaluate_entropy(),
evaluate_independence(),
evaluate_mad(),
evaluate_mean(),
evaluate_na(),
evaluate_orig(),
evaluate_sd()
Examples
data(survey, package = "MASS")
index <- create_subset(nrow(survey), 50, 5)
ev_index <- evaluate_index(index, survey[, c("Sex", "Smoke")])
#> Warning: There might be some problems with the data use check_data().
ev_index["entropy", , ]
#> subgroups
#> variables SubSet1 SubSet2 SubSet3 SubSet4 SubSet5
#> Sex 0.9949848 0.9544340 1.0000000 0.9970591 0.9918208
#> Smoke 0.4001934 0.4855790 0.4487245 0.6082579 0.5376809
#> mix_cat 0.6660806 0.6605638 0.6587911 0.7305701 0.7266037