pairwise_ks_test: Pairwise Kolmogorov-Smirnov Test

Description Usage Arguments Details Value Author(s) Examples

Description

Perform Pairwise Multiple Comparisons Using Kolmogorov-Smirnov Test

Usage

1
2
pairwise_ks_test(value, group, n_min = 50, warning = 0,
  alternative = "two.sided")

Arguments

value

a numeric vector of data values

group

a group indicator

n_min

The minimum number of observations in each group. Group(s) with observation less than n_min will be removed. "n_min=50"(default)

warning

sets the handling of warning messages. If warning is negative all warnings are ignored. If warning is zero (the default) warnings are stored until the top–level function returns. If 10 or fewer warnings were signalled they will be printed otherwise a message saying how many were signalled. An object called last.warning is created and can be printed through the function warnings. If warning is one, warnings are printed as they occur. If warn is two or larger all warnings are turned into errors.

alternative

indicates the alternative hypothesis and must be one of "two.sided" (default), "less", or "greater". You can specify just the initial letter of the value, but the argument name must be give in full. See ‘Details’ for the meanings of the possible values.

Details

Missing values are silently omitted from x and (in the two-sample case) y.

The possible values "two.sided", "less" and "greater" of alternative specify the null hypothesis that the true distribution function of x is equal to, not less than or not greater than the hypothesized distribution function (one-sample case) or the distribution function of y (two-sample case), respectively. This is a comparison of cumulative distribution functions, and the test statistic is the maximum difference in value, with the statistic in the "greater" alternative being D^+ = max[F_x(u) - F_y(u)]. Thus in the two-sample case alternative = "greater" includes distributions for which x is stochastically smaller than y (the CDF of x lies above and hence to the left of that for y), in contrast to t.test or wilcox.test.

Value

Pairwise Kolmogorov-Smirnov Test p-value Matrix

Author(s)

Hui Lin, longqiman@gmail.com

Examples

1
2
3
4
5
6
7
## Not run: 
data("iris")
value<-iris$Sepal.Length
group<-iris$Species
pairwise_ks_test(value,group,warning = -1)

## End(Not run)

happyrabbit/DataScienceR documentation built on May 17, 2019, 2:41 p.m.