View source: R/evaluate_category.R
| evaluate_independence | R Documentation |
Looks the independence between the categories and the batches.
evaluate_independence(i, pheno)
i |
Index of subsets. |
pheno |
A data.frame with the information about the samples. |
Returns a vector with the p-values of the chisq.test between the category and the subset.
Other functions to evaluate samples:
evaluate_entropy(),
evaluate_index(),
evaluate_mad(),
evaluate_mean(),
evaluate_na(),
evaluate_orig(),
evaluate_sd()
Other functions to evaluate categories:
evaluate_entropy(),
evaluate_na()
data(survey, package = "MASS")
index <- design(survey[, c("Sex", "Smoke", "Age")], size_subset = 50,
iterations = 10)
# Note that numeric columns will be omitted:
evaluate_independence(index, survey[, c("Sex", "Smoke", "Age")])
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.