evaluate_entropy {experDesign} | R Documentation |
Evaluate entropy
Description
Looks if the nominal or character columns are equally distributed according to the entropy and taking into account the independence between batches. If any column is different in each row it is assumed to be the sample names and thus omitted.
Usage
evaluate_entropy(i, pheno)
Arguments
i |
list of numeric indices of the data.frame |
pheno |
Data.frame with information about the samples |
Value
Value to minimize
See Also
Other functions to evaluate samples:
evaluate_independence()
,
evaluate_index()
,
evaluate_mad()
,
evaluate_mean()
,
evaluate_na()
,
evaluate_orig()
,
evaluate_sd()
Other functions to evaluate categories:
evaluate_independence()
,
evaluate_na()
Examples
data(survey, package = "MASS")
index <- design(survey[, c("Sex", "Smoke", "Age")], size_subset = 50,
iterations = 10)
# Note that numeric columns will be omitted:
evaluate_entropy(index, survey[, c("Sex", "Smoke", "Age")])
[Package experDesign version 0.4.0 Index]