## Simple example
dummy_matrix <- matrix(rnorm(500), 100, 5)
## Testing whether the mean of a random subset
## is different than the means of 100 subsets
dummy_test <- randtest.dispRity(dummy_matrix,
subset = sample(1:100, 20),
metric = mean)
dummy_test ; plot(dummy_test)
## The distance between the observed data and the 95% quantile
randtest.dist(dummy_test)
## The absolute distance from the median
randtest.dist(dummy_test, quantile = 0.5, abs = TRUE)
Run the code above in your browser using DataLab