runstest.plot | R Documentation |
Runs Test with a Plot
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.
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.