ds_eqp_1 | R Documentation |
Non-parametric one-sample hypothesis testing via dynamic slicing with O(n)
-resolution. The basic idea of ds_eqp_1
is almost the same as ds_1
. Difference between these two functions is that ds_eqp_1
considers an equal partition on [0, 1] but ds_1
does not. Candidate slicing boundaries in ds_eqp_1
only depend on the total number of samples and are unrelated to sample quantiles. In ds_1
they are immediately to the left or right of sample quantile.
ds_eqp_1(y, lambda)
y |
Vector: quantiles of observations according to null distribution. |
lambda |
|
Value of dynamic slicing statistic for one-sample test. It is nonnegative. The null hypothesis that observations are from the null distribution is rejected if this statistic is greater than zero, otherwise accept the null hypothesis.
ds_1
.
n <- 100
mu <- 0.5
x <- rnorm(n, mu, 1)
y <- pnorm(sort(x), 0, 1)
lambda <- 1.0
dsres <- ds_eqp_1(y, lambda)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.