Learn R Programming

npsm (version 2.0.0)

fkk.test: k-Sample version of the Fligner-Kileen test for homogeneous scales.

Description

Returns the Fligner-Kileen test for homogeneous scales for k-samples. Also estimates of ratio of scales based on the logs of folded median-aligned samples and a corresponding confidence interval is computed. The first level (sample) is referenced. See the discussion in Section 5.7 of Kloke and McKean (2014)/Section 5.8 of Kloke and McKean (2024).

Usage

fkk.test(y,ind,conf.level = 0.95)

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

cwts

vector of weights based on the estimates difference in scales

Arguments

y

vector of responses

ind

vector of corresponding levels

conf.level

confidence coefficient for the returned confidence intervals

Author

John Kloke, Joseph McKean

Details

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

References

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

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

See Also

fk.test

Examples

Run this code
y1 <- rnorm(10)
y2 <- rnorm(12)*3
y3 <- rnorm(15)*5
y<-c(y1,y2,y3)
ind<-rep(1:3,times=c(10,12,15))
fkk.test(y,ind)

Run the code above in your browser using DataLab