kuip.test: Kuiper Test used to test if two groups of data come from same...

Description Usage Arguments Value Examples

Description

Kuiper test is similar to two-sample Kolmogorov-Smirnov test. Compare to two-sample Kolmogorov-Smirnov test, Kuiper test is as sensitive in the tails as at the median and invariant under cyclic transformations of the independent variable.

Usage

1
kuip.test(vFLvector1, vFLvector2)

Arguments

vFLvector1

a FLVector of data values

vFLvector2

a FLVector of data values

Value

A list with class "htest" outputting the corresponding test Stat and P Values.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
## running on random FLvector
flx<-as.FLVector(rnorm(100))
fly<-as.FLVector(rnorm(100))
kuip.test(flx, fly)

## running on in-Database FLVector
fltbl1 <- FLTable(getTestTableName("tblKuiperTest"),
                   "obsid", 
                  whereconditions = "groupid=1
                   and datasetid=1")
fltbl2 <- FLTable(getTestTableName("tblKuiperTest"),
                   "obsid", 
                  whereconditions = "groupid=2
                   and datasetid=1")
flx <- fltbl1$num_val
fly <- fltbl2$num_val
kuip.test(flx, fly)

Fuzzy-Logix/AdapteR documentation built on May 6, 2019, 5:07 p.m.