# fk.test: Two-sample Fligner-Kileen test for homogeneous scales. In kloke/npsm: Package for Nonparametric Statistical Methods using R

## Description

Returns the Fligner-Kileen test for homogeneous scales for two-samples. Also estimates of ratio of scales based on the logs of folded median-aligned samples and a corresponding confidence interval is computed. fk.test computes the value of the statistic based on squared-normal scores following the optimal (for normal errors) such test described in Section 2.10 of Hettmansperger and McKean (2011). Hence, it will differ from the core R routine fligner.test; see the discussion in Section 3.3 of Kloke and McKean (2014).

## Usage

 `1` ```fk.test(x,y,alternative = c("two.sided", "less", "greater"),conf.level = 0.95) ```

## Arguments

 `x` vector of first sample responses `y` vector of second sample responses `alternative` alternative indicator for hypotheses `conf.level` confidence coefficient for the returned confidence intervals

## Details

Returns the Fligner-Kileen test for the two-sample scale problem.

## Value

 `statistic` chi-squared test statistic `p.value` p-value of the test `estimate` vector of estimates of ratio of scales `conf.int` table of confidence intervals

## Author(s)

John Kloke [email protected], Joseph McKean

## References

Kloke, J. and McKean, J.W. (2014), Nonparametric statistcal methods using R, Boca Raton, FL: Chapman-Hall.

Hettmansperger, T.P. and McKean J.W. (2011), Robust Nonparametric Statistical Methods, 2nd ed., New York: Chapman-Hall.

 ```1 2 3``` ```x<-rnorm(18) y<-rnorm(22)*3 fk.test(x,y) ```