View source: R/randomizationTest.R
randomizationTest | R Documentation |
A function to perform randomization test
randomizationTest(list, R = 500, calc, fun = NA, seed = NA, printSummary = TRUE)
list |
a list with two or more numeric vectors |
R |
|
calc |
a function to be applied to every vector in |
fun |
a function to be applied to a vector (e.g. |
seed |
a single value, interpreted as an integer. If specified make the simulation replicable. |
printSummary |
logical, if |
The silently returned value is an object of class "boot"
Daniele Amberti
Kenett, R., Zacks, S. with contributions by Amberti, D. Modern Industrial Statistics: with applications in R, MINITAB and JMP. Wiley.
boot
data(OELECT) data(OELECT1) # test difference in mean: randomizationTest(list(a=OELECT, b=OELECT1), R=500, calc=mean, fun=function(x) x[1]-x[2], seed=123)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.