perm.var.test: Permutational F test to compare two variances
Description
Performs a permutational F test to compare two variances.
Usage
perm.var.test(x, ...)
## S3 method for class 'default':
perm.var.test(x, y, ...)
## S3 method for class 'formula':
perm.var.test(formula, data, alternative = c("two.sided", "less",
"greater"), nperm = 999, ...)
Arguments
x
a numeric vector of data values.
y
a numeric vector of data values.
formula
a formula of the form a ~ b where a gives the data values and b a factor with 2 levels giving the corresponding groups.
data
an optional data frame containing the variables in the formula formula. By default the variables are taken from environment(formula).
alternative
a character string specifying the alternative hypothesis, must be one of "two.sided" (default), "greater" or "less".
nperm
number of permutations.
...
further arguments to be passed to or from other methods.
Value
methodname of the test.
statistictest statistics of the parametric test.
permutationsnumber of permutations.
p.valuep-value of the permutational test.
estimatethe ratio of the two variances.
alternativea character string describing the alternative hypothesis.
data.namea character string giving the name(s) of the data.
null.valuethe ratio of population variances under the null hypothesis, always 1.
Details
The function deals with the limitted floating point precision, which can bias calculation of p-values based on a discrete test statistic distribution.