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 ------------------------------------------------------------------------------------------ Hartley (Mean) | 0.9820 | 0.0280 | 0.9909 | Suggested * Hartley (Harmonic) | 0.9820 | 0.0280 | 0.9909 | Suggested * Hartley (Max n) | 0.9820 | 0.0280 | 0.9909 | Suggested * Hartley (Min Var) | 0.9820 | 0.0280 | 0.9909 | Suggested * Bartlett | 0.9790 | 0.0280 | 0.9893 | - Z Variance | 0.9780 | 0.0300 | 0.9878 | - Modified Z Variance | 0.9810 | 0.0430 | 0.9841 | - Fisher | 0.9910 | 0.0800 | 0.9832 | - Levene (Mean, Sq) | 0.9680 | 0.0530 | 0.9659 | - O'Brien (Mean) | 0.9630 | 0.0470 | 0.9653 | - Capon | 0.9520 | 0.0370 | 0.9646 | - Klotz | 0.9530 | 0.0380 | 0.9644 | - Levene (Trim, Sq) | 0.9600 | 0.0470 | 0.9625 | - O'Brien (Trimmed Mean) | 0.9550 | 0.0430 | 0.9614 | - O'Brien (Median) | 0.9520 | 0.0410 | 0.9607 | - Levene (Med, Sq) | 0.9570 | 0.0480 | 0.9588 | - Levene (Mean, Abs) | 0.9360 | 0.0460 | 0.9409 | - Levene (Trim, Abs) | 0.9340 | 0.0450 | 0.9402 | - Levene (Med, Abs) | 0.9270 | 0.0420 | 0.9378 | - Fligner-Killeen | 0.9220 | 0.0400 | 0.9363 | - Duran | 0.9040 | 0.0400 | 0.9208 | - Mood | 0.8980 | 0.0450 | 0.9067 | - Cochran's C | 0.8400 | 0.0320 | 0.8853 | - G | 0.8400 | 0.0320 | 0.8853 | - Talwar-Gentle | 0.8030 | 0.0430 | 0.8224 | - Siegel-Tukey | 0.8020 | 0.0440 | 0.8186 | - Ansari-Bradley | 0.8030 | 0.0460 | 0.8139 | - David-Barton | 0.8030 | 0.0460 | 0.8139 | - ========================================================================================== * 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 85.56 2.03 87.60