View source: R/perm.bartlett.test.R
perm.bartlett.test | R Documentation |
Performs a permutation Bartlett's test of homogeneity of k variances.
perm.bartlett.test(formula, data, nperm = 999, progress = TRUE)
formula |
a formula of the form |
data |
an optional data frame containing the variables in the formula |
nperm |
number of permutations. |
progress |
logical indicating if the progress bar should be displayed. |
The function deals with the limitted floating point precision, which can bias calculation of p-values based on a discrete test statistic distribution.
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. |
Maxime HERVE <maxime.herve@univ-rennes1.fr>
bartlett.test
response <- c(rnorm(12),rpois(12,1),rnorm(12,2,1))
fact <- gl(3,12,labels=LETTERS[1:3])
perm.bartlett.test(response~fact)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.