Skip to content

An R function for permutation testing of group differences. Calculates p-values and confidence intervals based on stochastic search following Garthwaite's "Confidence intervals from randomization tests" (Biometrics 1996: 1387-1393)

Notifications You must be signed in to change notification settings

stefgehrig/perm_test_ci

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 

Repository files navigation

perm_test_ci

This function performs a permutation test for the difference of two group means, see for example:

  • Ernst, M. D. (2004). Permutation methods: a basis for exact inference.
    Statistical Science, 19(4), 676-685.

It calculates an exact two-sided p-value for the Null hypothesis of no difference between groups. It creates a histogram of the simulated permutation distribution of mean differences. Confidence intervals for the mean difference are approximated via the stochastic search method described in:

  • Garthwaite, P. H. (1996). Confidence intervals from randomization tests.
    Biometrics, 1387-1393.

Diagnostic plots for the search process are provided. An example is provided with the code.

About

An R function for permutation testing of group differences. Calculates p-values and confidence intervals based on stochastic search following Garthwaite's "Confidence intervals from randomization tests" (Biometrics 1996: 1387-1393)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages