[Rd] Silent failure with NA results in fligner.test()

Karolis K k@ro||@@koncev|c|u@ @end|ng |rom gm@||@com
Wed Dec 23 23:01:29 CET 2020

To me it seems like returning chi-sq = 0 and p-value = 1 would make sense.
It would also be consistent with other scenarios of equal variance in all
groups. One example:

fligner.test(1:8, gl(2,4))
#        Fligner-Killeen test of homogeneity of variances
# data:  1:8 and gl(2, 4)
# Fligner-Killeen:med chi-squared = 0, df = 1, p-value = 1

But I am aware that other tests implemented in stats:: sometimes throw
errors in similar situations.

Maybe someone more familiar with the behaviour and philosophy behind
stats:: preferences can add more weight here?

Warm regards,
Karolis K.

	[[alternative HTML version deleted]]

More information about the R-devel mailing list