Learn R Programming

RVAideMemoire (version 0.9-83-7)

perm.bartlett.test: Permutation Bartlett's test of homogeneity of variances

Description

Performs a permutation Bartlett's test of homogeneity of k variances.

Usage

perm.bartlett.test(formula, data, nperm = 999, progress = TRUE)

Value

method

name of the test.

data.name

a character string giving the name(s) of the data.

statistic

test statistics of the parametric test.

permutations

number of permutations.

p.value

p-value of the permutation test.

Arguments

formula

a formula of the form a ~ b where a gives the data values and b the corresponding groups.

data

an optional data frame containing the variables in the formula formula. By default the variables are taken from environment(formula).

nperm

number of permutations.

progress

logical indicating if the progress bar should be displayed.

Author

Maxime HERVE <maxime.herve@univ-rennes1.fr>

Details

The function deals with the limitted floating point precision, which can bias calculation of p-values based on a discrete test statistic distribution.

See Also

Examples

Run this code
response <- c(rnorm(12),rpois(12,1),rnorm(12,2,1))
fact <- gl(3,12,labels=LETTERS[1:3])
perm.bartlett.test(response~fact)

Run the code above in your browser using DataLab