powered by
This function computes the p-value for the one sample t-test using a permutation test. The permutation density can also be plotted.
onet.permutation(x = DAAG::pair65$heated - DAAG::pair65$ambient, nsim = 2000, plotit = TRUE)
a numeric vector containing the sample values (centered at the null hypothesis value)
the number of permutations (randomly selected)
if TRUE, the permutation density is plotted
The p-value for the test of the hypothesis that the mean of x differs from 0
x
Good, P. 2000. Permutation Tests. Springer, New York.
# NOT RUN { onet.permutation() # }
Run the code above in your browser using DataLab