ptest | R Documentation |
Execute one-sample permutation test on two numeric vector. Its keep one vector constant and ‘shuffle’ the other by resampling. This approximates the null hypothesis — that there is no dependency/difference between the variables.
ptest(
x,
y,
FUN,
rk = F,
alternative = c("two.sided", "less", "greater"),
num.s = 1000,
...
)
x |
\[ |
y |
\[ |
FUN |
\[ |
rk |
\[ |
alternative |
\[ |
num.s |
\[ |
... |
Additional arguments (TODO). |
## Not run:
x = iris[[1]]; y = iris[[2]]
ptest(x,y,FUN = function(x,y) cor(x,y) ,alternative = 't')
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.