Skip to contents

Perform a doublets test on the input data to test for aggregation or clustering or randomness.

Usage

doublets.test(x)

Arguments

x

A numeric vector representing the input data

Value

A list with elements Db (number of doublets), EDb (expected number of doublets), pvalue, and result (either "aggregation or clustering" or "randomness").

Examples

doublets.test(c(1, 0, 1, 1, 0, 1, 0, 0, 1, 1))
#> $Db
#> [1] 2
#> 
#> $EDb
#> [1] 3
#> 
#> $ZDb
#> [1] -0.6454972
#> 
#> $pvalue
#> [1] 0.2593025
#> 
#> $result
#> [1] "randomness"
#>