glance.levene: Glance at a 'levene' object

View source: R/levene.R

glance.leveneR Documentation

Glance at a levene object

Description

Glance accepts an object of type levene and returns a tibble::tibble() with one row of summaries.

Glance does not do any calculations: it just gathers the results in a tibble.

Usage

## S3 method for class 'levene'
glance(x, ...)

Arguments

x

a levene object returned from levene_test()

...

Additional arguments. Not used. Included only to match generic signature.

Value

A one-row tibble::tibble() with the following columns:

  • alpha the value of alpha specified

  • modcv a logical value indicating whether the modified CV approach was used.

  • n the total number of observations

  • k the number of groups

  • f the value of the F test statistic

  • p the computed p-value

  • reject_equal_variance a boolean value indicating whether the null hypothesis that all samples have the same variance is rejected

See Also

levene_test()

Examples

df <- data.frame(
  groups = c(rep("A", 5), rep("B", 6)),
  strength = c(rnorm(5, 100, 6), rnorm(6, 105, 7))
)
levene_result <- levene_test(df, strength, groups)
glance(levene_result)

## # A tibble: 1 x 7
##   alpha modcv     n     k      f     p reject_equal_variance
##   <dbl> <lgl> <int> <int>  <dbl> <dbl> <lgl>
## 1  0.05 FALSE    11     2 0.0191 0.893 FALSE


cmstatr documentation built on May 29, 2024, 8:44 a.m.