powered by
Report the statistics for each subset and variable compared to the original.
check_index(pheno, index, omit = NULL)
A matrix with the differences with the original data.
Data.frame with the sample information.
A list of indices indicating which samples go to which subset.
Name of the columns of the pheno that will be omitted.
pheno
The closer the values are to 0, the less difference is with the original distribution, so it is a better randomization.
Functions that create an index design(), replicates(), spatial(). See also create_subset() for a random index.
design()
replicates()
spatial()
create_subset()
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)
Run the code above in your browser using DataLab