runstest.plot: Runs Test

Description Usage Arguments Value Examples

View source: R/ch15-fn.R

Description

Runs Test with a Plot

Usage

1
2
runstest.plot(x, n1, n2, alp = 0.05, side = "two", dig = 4,
  plot = TRUE)

Arguments

x

Data vector (or number of runs)

n1

Number of data in group 1 (required if raw data are not given)

n2

Number of data in group 2 (required if raw data are not given)

alp

Level of significance, Default: 0.05

side

Type of alternative hypothesis, Default: 'two'

dig

Number of digits below the decimal point, Default: 4

plot

Plot runs test results? Default: TRUE

Value

None.

Examples

1
2
3
4
5
6
7
require(randomizeBE)
x = c(1,1,0,0,1,0,rep(1,7), rep(0,7))
runstest.plot(x)

x = rep(0, 50)
x[c(1:2, 8:10, 17:18, 21, 26:27, 29:31, 36:37, 41:44, 49)] = 1
runstest.plot(x)

tjssu/Rstat documentation built on Aug. 8, 2020, 12:38 p.m.