Description Usage Arguments Value Examples
One-sample permutation test for the center of a distribution
1 | one_sample(x, reps = 1000, center = 0)
|
x |
Vector of observations |
reps |
Number of replications to approximate distribution (default 1000) |
center |
Optional; specify null center of distribution (default 0) |
A vector of length 'reps' containing the permutation distribution
1 2 3 4 5 6 7 8 | x <- -5:5 + rnorm(11)
distr <- one_sample(x)
pvalue <- t2p(mean(x), distr, alternative = 'two-sided')
pvalue
distr2 <- one_sample(x, center = 5)
pvalue2 <- t2p(mean(x), distr2, alternative = 'greater')
pvalue2
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.