is_unimodal: Test if a hash distribution is unimodal

Description Usage Arguments Value

View source: R/hash_matrix_analysis.R

Description

This function uses the "HH" method provided by multimode::modetest() with B = 20.

Usage

1
is_unimodal(x, p.cutoff = 0.2)

Arguments

x

a numeric vector of hash count values

p.cutoff

a numeric value indicating the p-value cutoff for a test of multimodality. If p.value > p.cutoff, the distribution is unimodal.

Value

a logical value. TRUE if x appears unimodal based on the p-value cutoff.


AllenInstitute/BarMixer documentation built on Dec. 17, 2021, 8:42 a.m.