Description Usage Arguments Value Examples
Runs Test with a Plot
1 2 | runstest.plot(x, n1, n2, alp = 0.05, side = "two", dig = 4,
plot = TRUE)
|
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 |
None.
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.