Learn R Programming

ump (version 0.5-6)

arpv.binom: 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 TRUE make a plot.
...
additional arguments passed to arpv.plot.

Value

a list containing two components:
alpha
significance level values at the knots.
phi
distribution function values at the knots.

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.

Examples

Run this code
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)

Run the code above in your browser using DataLab