Rao test statistic based on spacing frequencies

rao(Sk)

Arguments

Sk

spacing frequencies

Value

Rao test statistic

Examples

data(pigeons) spacings = compute_Sk(pigeons$control, pigeons$experimental) rao(spacings$Sk)
#> [1] 14
rao(c(1,0,0,0,1,2))
#> [1] 4