jmuOutlier-package: Permutation Tests for Nonparametric Statistics

Description Details Author(s) References See Also Examples

Description

Performs a permutation test on the difference between two location parameters, a permutation correlation test, a permutation F-test, the Siegel-Tukey test, a ratio mean deviance test. Also performs some graphing techniques, such as for confidence intervals, vector addition, and Fourier analysis; and includes functions related to the Laplace (double exponential) and triangular distributions. Performs power calculations for the binomial test.

Details

(I) Permutation tests

(II) Confidence intervals

(III) Graphs

(IV) Laplace (double exponential) and symmetric triangular distributions

(V) Reading datasets

(VI) Additional functions

Author(s)

Steven T. Garren, James Madison University, Harrisonburg, Virginia, USA

References

Higgins, J. J. (2004) Introduction to Modern Nonparametric Statistics.

See Also

R-package coin for additional permutation tests, and R-package fastGraph.

Examples

1
2
3
4
5
6
7
8
9
print( x <- rtriang(20,50) ) 

perm.test( x, mu=25, stat=median )

quantileCI( x, c(0.25, 0.5, 0.75)  )

power.binom.test( 20, 0.05, "less", 47, plaplace, 45.2, 3.7 )

fourier (function(x){ (x-pi)^3 }, 4 )

Example output

 [1] 16.331527 11.073387 33.669940 43.412116 30.667683 44.094618 26.317435
 [8] 26.208683 27.969395 13.543866 39.246650  4.471731 25.494942 24.359593
[15] 33.829072 11.887257 39.855904 27.766518 21.204405 32.210546
[[1]]
[1] "One-sample permutation test was performed."

[[2]]
[1] "p-value was estimated based on 20000 simulations."

$alternative
[1] "two.sided"

$mu
[1] 25

$p.value
[1] 0.36035

        lower    upper
0.25 11.07339 26.31744
0.5  21.20441 33.66994
0.75 27.76652 43.41212
[1] 0.6119434
$constant
[1] 0

$cosine.coefficients
[1] 0 0 0 0

$sine.coefficients
[1] -7.739209 -8.369604 -6.135292 -4.747302

$approximation
[1] "g(x) = - 7.74 sin x - 8.37 sin 2x - 6.14 sin 3x - 4.75 sin 4x"

jmuOutlier documentation built on Aug. 6, 2019, 1:03 a.m.