my_ks_test: My Kolmogorov-Smirnov Tests

Description Usage Arguments Examples

View source: R/my_ks_test.R

Description

Performs two-sample Kolmogorov-Smirnov tests based on the dgof::ks.test from the dgof package and the Monte Carlo replicates from the mc_gini_test

Usage

1
2
my_ks_test(x, data = NULL, simulate.p.value = TRUE, B = 500,
  alternative = "greater", family = c("poisson", "nbinom"))

Arguments

x

a vector of counts or the name of a column of counts in data

data

a data frame

simulate.p.value

logical to indicate if KS-test p-value should be calculated using Monte Carlo simulation

B

number of replicates of the null hypothesis distribution, and of the KS-test p-value if simulate.p.value is TRUE

alternative

Alternative hypothesis: The CDF is above the null

family

the distribution of the null hypothesis

Examples

1
my_ks_test(x = "extortions", data = testdata, family = "poisson")

prestevez/estevez documentation built on Jan. 31, 2020, 12:31 a.m.