| jmuOutlier-package {jmuOutlier} | R Documentation |
Permutation Tests for Nonparametric Statistics
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
perm.cor.testperforms a permutation test based on Pearson and Spearman correlations.perm.f.testperforms a permutation F-test and a one-way analysis of variance F-test.perm.testperforms one-sample and two-sample permutation tests on vectors of data.rmd.testperforms a permutation test based on the estimated RMD, the ratio of the mean of the absolute value of the deviances, using two datasets.siegel.testperforms the Siegel-Tukey test using two datasets.
(II) Confidence intervals
CI.t.testproduces two-sided confidence intervals on population mean, allowing for a finite population correction.quantileCIproduces exact confidence intervals on quantiles corresponding to the stated probabilities, based on the binomial test.
(III) Graphs
coin.tossillustrates the Law of Large Numbers for proportions.fourierdetermines the Fourier approximation for any function on domain(0, 2\pi)and then graphs both the function and the approximation.lineGraphconstructs a line graph on a vector of numerical observations.plotCIplots multiple confidence intervals on the same graph, and determines the proportion of confidence intervals containing the true population mean.plotEcdfgraphs one or two empirical cumulative distribution functions on the same plot.plotVectorplots one or two 2-dimensional vectors along with their vector sum.truncHistproduces a truncated histogram, which may be useful if data contain some extreme outliers.
(IV) Laplace (double exponential) and symmetric triangular distributions
dlaplace,plaplace,qlaplace, andrlaplacegive the density, the distribution function, the quantile function, and random deviates, respectively, of the Laplace distribution.dtriang,ptriang,qtriang, andrtrianggive the density, the distribution function, the quantile function, and random deviates, respectively, of the triangular distribution.
(V) Reading datasets
read.table2reads table of data from author's website.scan2scans data from author's website.
(VI) Additional functions
abbreviationdetermines if one character variable is an abbreviation among a selection of other character variables.latingenerates a Latin square.power.binom.testcomputes the power of the binomial test of a simple null hypothesis about a population median.scoregenerates van der Waerden scores (i.e., normal quantiles) and exponential (similar to Savage) scores.
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
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 )