R version 4.6.0 RC (2026-04-21 r89932 ucrt) -- "Because it was There" Copyright (C) 2026 The R Foundation for Statistical Computing Platform: x86_64-w64-mingw32/x64 R is free software and comes with ABSOLUTELY NO WARRANTY. You are welcome to redistribute it under certain conditions. Type 'license()' or 'licence()' for distribution details. R is a collaborative project with many contributors. Type 'contributors()' for more information and 'citation()' on how to cite R or R packages in publications. Type 'demo()' for some demos, 'help()' for on-line help, or 'help.start()' for an HTML browser interface to help. Type 'q()' to quit R. > library(testthat) > library(vartest) Attaching package: 'vartest' The following objects are masked from 'package:stats': ansari.test, mood.test > > test_check("vartest") ========================================================================================== Test Method | Power | Type I Error | Adj. Power | Evaluation ------------------------------------------------------------------------------------------ Bartlett | 0.9720 | 0.0300 | 0.9841 | Suggested * Z Variance | 0.9720 | 0.0300 | 0.9841 | Suggested * Hartley (Mean) | 0.9740 | 0.0330 | 0.9837 | - Hartley (Harmonic) | 0.9740 | 0.0330 | 0.9837 | - Hartley (Max n) | 0.9740 | 0.0330 | 0.9837 | - Hartley (Min Var) | 0.9740 | 0.0330 | 0.9837 | - Modified Z Variance | 0.9820 | 0.0520 | 0.9811 | - Fisher | 0.9890 | 0.0890 | 0.9768 | - Levene (Mean, Sq) | 0.9670 | 0.0520 | 0.9656 | - O'Brien (Mean) | 0.9640 | 0.0500 | 0.9640 | - O'Brien (Median) | 0.9560 | 0.0430 | 0.9623 | - Levene (Trim, Sq) | 0.9580 | 0.0460 | 0.9615 | - Levene (Med, Sq) | 0.9570 | 0.0450 | 0.9614 | - O'Brien (Trimmed Mean) | 0.9540 | 0.0430 | 0.9605 | - Capon | 0.9530 | 0.0520 | 0.9511 | - Klotz | 0.9540 | 0.0540 | 0.9503 | - Levene (Med, Abs) | 0.9340 | 0.0500 | 0.9340 | - Levene (Trim, Abs) | 0.9410 | 0.0570 | 0.9330 | - Levene (Mean, Abs) | 0.9440 | 0.0610 | 0.9320 | - Fligner-Killeen | 0.9220 | 0.0470 | 0.9263 | - Duran | 0.9020 | 0.0530 | 0.8970 | - Mood | 0.9010 | 0.0560 | 0.8910 | - Cochran's C | 0.8160 | 0.0310 | 0.8690 | - G | 0.8160 | 0.0310 | 0.8690 | - Ansari-Bradley | 0.8150 | 0.0460 | 0.8255 | - David-Barton | 0.8150 | 0.0460 | 0.8255 | - Siegel-Tukey | 0.8130 | 0.0470 | 0.8209 | - Talwar-Gentle | 0.8080 | 0.0500 | 0.8080 | - ========================================================================================== * Suggested method yielding the highest adjusted power with the lowest Type I error. Bartlett's Test data: Sepal.Length and Species X-squared = 16.006, df = 2, p-value = 0.0003345 Ansari Bradley Test data: Sepal.Length and Species X-squared = 9.5137, df = 2, p-value = 0.008593 Capon Test data: Sepal.Length and Species X-squared = 10.234, df = 2, p-value = 0.005993 David Barton Test data: Sepal.Length and Species X-squared = 9.5137, df = 2, p-value = 0.008593 Duran Test data: Sepal.Length and Species X-squared = 9.6837, df = 2, p-value = 0.007892 Fligner-Killeen Test data: Sepal.Length and Species X-squared = 11.618, df = 2, p-value = 0.003 Klotz Test data: Sepal.Length and Species X-squared = 11.304, df = 2, p-value = 0.00351 Mood Test data: Sepal.Length and Species X-squared = 9.4451, df = 2, p-value = 0.008893 Siegel Tukey Test data: Sepal.Length and Species X-squared = 8.4519, df = 2, p-value = 0.01461 Talwar and Gentle Test data: Sepal.Length and Species X-squared = 9.6413, df = 2, p-value = 0.008062 Cochran's C Test data: Sepal.Length and Species F = 0.50859, num df = 49, denom df = 98, p-value = 0.003456 Modified Z Variance Test data: Sepal.Length and Species F = 8.2779, num df = 2, denom df = Inf, p-value = 0.0002541 Fisher's Test data: Sepal.Length and Species F = 3.2543, num df.virginica = 49, denom df.setosa = 49, p-value = 6.366e-05 G Test data: Sepal.Length and Species F.virginica = 0.50859, num df = 49, denom df = 98, p-value = 0.003456 Hartley's Maximum F-Ratio Test data: Sepal.Length and Species F-max = 3.2543, df = 49, p-value = 0.0004241 Levene's Test data: Sepal.Length and Species F = 7.3811, num df = 2, denom df = 147, p-value = 0.0008818 O'Brien Test data: Sepal.Length and Species F = 6.4537, num df = 2, denom df = 147, p-value = 0.002058 Z Variance Test data: Sepal.Length and Species F = 7.6225, num df = 2, denom df = Inf, p-value = 0.0004893 [ FAIL 0 | WARN 0 | SKIP 0 | PASS 115 ] > > > proc.time() user system elapsed 79.15 2.00 81.12