Learn R Programming

RVAideMemoire (version 0.9-45-2)

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

Description

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

Usage

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

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.

Value

  • methodname of the test.
  • data.namea character string giving the name(s) of the data.
  • statistictest statistics of the parametric test.
  • permutationsnumber of permutations.
  • p.valuep-value of the permutational test.

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

bartlett.test

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