unimodal_test: Unimodality test for list of one or multiple sets of values

Description Usage Arguments Value Examples

View source: R/selectionEG_helpers.R

Description

Test of unimodality based in Hartigans' dip statistic D. Calculations of the statistic and p-value are done as in dip.test.

Usage

1
unimodal_test(values_list, MC_replicates= 1000)

Arguments

values_list

named list of vectors of class numeric. Names in values_list are required. If only one set of values is used the list must contain only one element.

MC_replicates

(numeric) number of replicates for the Monte Carlo test to calculate p-value. Default = 1000.

Value

A data.frame with the results of the test.

Examples

1
2
3
4
5
6
# Data
data("dist_list", package = "biosurvey")

# Testing unimodality
u_test <- unimodal_test(values_list = dist_list, MC_replicates = 500)
u_test

biosurvey documentation built on Sept. 16, 2021, 1:07 a.m.