A thin wrapper around car::leveneTest with some formatting done.

tadaa_levene(data, formula, center = "median", print = c("df", "console",
  "html", "markdown"))

Arguments

data

Data for the test

formula

Formula specifiyng groups, passed to leveneTest.

center

Method to use, either median (default for robustness) or mean.

print

Print method, default df: A regular data.frame. Otherwise passed to pixiedust::sprinkle_print_method for fancyness.

Value

A data.frame by default, otherwise dust object, depending on print.

Note

The case of center = "median" is technically called Brown–Forsythe test, so if that's selected the header for non-df returns will reflect that.

See also

Examples

tadaa_levene(ngo, deutsch ~ jahrgang, print = "console")
#> Table 1: **Levene\'s Test** for Homogeneity of Variance (**Brown-Forsythe** Adaption) #> #> Term df F p #> 1 jahrgang 2 0.41 0.66 #> 2 Residuals 247 #> #>
tadaa_levene(ngo, deutsch ~ jahrgang * geschl, print = "console")
#> Table 2: **Levene\'s Test** for Homogeneity of Variance (**Brown-Forsythe** Adaption) #> #> Term df F p #> 1 jahrgang:geschl 5 0.61 0.69 #> 2 Residuals 244 #> #>