arpv.binom {ump} | R Documentation |
Abstract Randomized P-value for the Binomial Distribution
Description
Calculate the abstract randomized P-value for the UMPU two-tailed test for the binomial distribution.
Usage
arpv.binom(x, n, p, plot = TRUE, ...)
Arguments
x |
binomial observations. |
n |
number of observations. |
p |
the success probability under the null hypothesis. |
plot |
if |
... |
additional arguments passed to |
Details
The first three arguments must be scalar. Evaluates the distribution function of the abstract randomized P-value for the UMPU two-tailed test for the binomial distribution, which is a continuous, piecewise linear function. Gives the knots.
Value
a list containing two components:
alpha |
significance level values at the knots. |
phi |
distribution function values at the knots. |
Examples
library(ump)
print(arpv.binom(10, 10, 0.7, plot = FALSE))
arpv.binom(10, 10, 0.7)
arpv.binom(10, 10, 0.7, df = FALSE)
[Package ump version 0.5-8 Index]