View source: R/selectionEG_helpers.R
unimodal_test | R Documentation |
Test of unimodality based in Hartigans' dip statistic D.
Calculations of the statistic and p-value are done as in
dip.test
.
unimodal_test(values_list, MC_replicates= 1000)
values_list |
named list of vectors of class numeric. Names in
|
MC_replicates |
(numeric) number of replicates for the Monte Carlo test to calculate p-value. Default = 1000. |
A data.frame with the results of the test.
# Data
data("dist_list", package = "biosurvey")
# Testing unimodality
u_test <- unimodal_test(values_list = dist_list, MC_replicates = 500)
u_test
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.