runs.dist: Distribution of Runs

Description Usage Arguments Value Examples

View source: R/runs.dist.R

Description

Distribution of Runs Test Statistic

Usage

1
runs.dist(n1 = 2:20, n2 = 2:20, alp = 0.05, tab = TRUE, side = "two", plot = FALSE)

Arguments

n1

Number of data in group 1, Default: 2:20

n2

Number of data in group 2, Default: 2:20

alp

Level of significance, Default: 0.05

tab

Print critical value table? Default: TRUE

side

Type of alternative hypothesis, Default: 'two'

plot

Plot run distribution? Default: FALSE

Value

None.

Examples

1
2
3
require(randomizeBE)
runs.dist(n1 = 2:10, n2 = 2:10)
runs.dist(n1 = c(5, 20), n2 = c(5, 20), tab = FALSE, plot = TRUE)

jhk0530/Rstat documentation built on Dec. 20, 2021, 11:11 p.m.