check_index | R Documentation |
Report the statistics for each subset and variable compared to the original.
check_index(pheno, index, omit = NULL)
pheno |
Data.frame with the sample information. |
index |
A list of indices indicating which samples go to which subset. |
omit |
Name of the columns of the |
The closer the values are to 0, the less difference is with the original distribution, so it is a better randomization.
A matrix with the differences with the original data.
Functions that create an index design()
, replicates()
,
spatial()
. See also create_subset()
for a random index.
index <- create_subset(50, 24)
metadata <- expand.grid(height = seq(60, 80, 5), weight = seq(100, 300, 50),
sex = c("Male","Female"))
check_index(metadata, index)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.