Report the statistics for each subset and variable compared to the original.
Arguments
- 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
phenothat will be omitted.
Details
The closer the values are to 0, the less difference is with the original distribution, so it is a better randomization.
See also
Functions that create an index design(), replicates(),
spatial(). See also create_subset() for a random index.
Examples
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)
#> subgroups
#> SubSet1 SubSet2 SubSet3
#> height 0.70337556 0.64335530 0.25552717
#> weight 1.78087320 23.64064592 4.85755683
#> sex 0.08412415 0.08412415 0.07659676