Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

onetPermutation

One Sample Permutation t-test


Description

This function computes the p-value for the one sample t-test using a permutation test. The permutation density can also be plotted.

Usage

onetPermutation(x = DAAG::pair65$heated - DAAG::pair65$ambient, nsim = 2000, 
plotit = TRUE)

Arguments

x

a numeric vector containing the sample values (centered at the null hypothesis value)

nsim

the number of permutations (randomly selected)

plotit

if TRUE, the permutation density is plotted

Value

The p-value for the test of the hypothesis that the mean of x differs from 0

Author(s)

J.H. Maindonald

References

Good, P. 2000. Permutation Tests. Springer, New York.

Examples

onetPermutation()

DAAG

Data Analysis and Graphics Data and Functions

v1.24
GPL-3
Authors
John H. Maindonald and W. John Braun
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.