one-sample-stats | R Documentation |
This is a collection of functions that provide test statistics to be used into the permutation scheme for performing one-sample testing.
stat_max(data, flips, ...)
data |
A list storing the sample from which the user wants to make inference. |
flips |
A numeric vectors of |
... |
Extra parameters specific to some statistics. |
A numeric value evaluating the desired test statistic.
n <- 10
x <- as.list(rnorm(n))
flips <- sample(c(-1, 1), n, replace = TRUE)
stat_max(x, flips)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.