This function performs the Number of runs up and down test

numberRunsUpDown.test(sequence)

Arguments

sequence

Sequence of data

Value

A list with pvalues for alternative hypothesis, statistics, method and data name

Examples

numberRunsUpDown.test(c(23,99,89,36,1,64,14,28,2,81))
#> $data.name #> [1] "c(23, 99, 89, 36, 1, 64, 14, 28, 2, 81)" #> #> $statistic #> [1] 7 #> #> $p.value #> Exact Left Tail Exact Right Tail Exact Double Tail #> 1.0000000 0.4524000 0.9048000 #> Asymptotic Left Tail Asymptotic Right Tail Asymptotic Double Tail #> 0.8332313 0.5549370 1.0000000 #> #> $method #> [1] "Number of runs up and down" #>