Last data update: 2014.03.03

R: Abstract Randomized P-value for the Binomial Distribution
arpv.binomR 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 TRUE make a plot.

...

additional arguments passed to arpv.plot.

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)

Results