evaluate_index | R Documentation |
Measures several indicators per group
evaluate_index(i, pheno)
i |
Index |
pheno |
Data.frame with information about the samples |
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.
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()
data(survey, package = "MASS")
index <- create_subset(nrow(survey), 50, 5)
ev_index <- evaluate_index(index, survey[, c("Sex", "Smoke")])
ev_index["entropy", , ]
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.