This function performs the Number of runs

numberRuns.test(sequence)

Arguments

sequence

Sequence of data

Value

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

Examples

numberRuns.test(c("b","a","a","a","a","a","b","a","a","a"))
#> $data.name #> [1] "c(\"b\", \"a\", \"a\", \"a\", \"a\", \"a\", \"b\", \"a\", \"a\", \"a\")" #> #> $statistic #> Runs #> 4 #> #> $p.value #> Exact Left Tail Exact Right Tail Exact Double Tail #> 0.5330000 0.7780000 1.0000000 #> Asymptotic Left Tail Asymptotic Right Tail Asymptotic Double Tail #> 0.6327706 0.7856643 1.0000000 #> #> $method #> [1] "Number of runs" #>