WaldWolftest1s: Performs the Wald-Wolfowitz one sample test of randomness for...

Description Usage Arguments Value Constraints Examples

Description

Performs the Wald-Wolfowitz one sample test of randomness for continuous data.

Usage

1
WaldWolftest1s(vFLvector, threshold = median(vFLvector))

Arguments

threshold

the cut-point to transform the data into a dichotomous vector.

x

a FLVector containing the observations.

Value

A list with class "htest" outputting the corresponding WW statistic and P Values.

Constraints

alternative, plot, pvalue isnt't currently supported for FL objects.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
## WaldWolfowitz test 1s:
data(sweetpotato)
yield <- as.FLVector(sweetpotato$yield)
WaldWolftest1s(yield)
     ## Data is transformed into a dichotomous vector according as each values 
     ## is above or below a given threshold. Values equal to the level are 
     ## removed from the sample.
     ## The default threshold value used in applications is the sample median 
     ## which give us the special case of this test with n1 = n2, the runs test 
     ## above and below the median.

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