arpv.binom: Abstract Randomized P-value for the Binomial Distribution

Description Usage Arguments Details Value Examples

Description

Calculate the abstract randomized P-value for the UMPU two-tailed test for the binomial distribution.

Usage

1
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

1
2
3
4
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)

Example output

$alpha
[1] 0.000000000 0.000019683 0.000433026 0.004290894 0.025294842 0.052384365

$phi
[1] 0.0000000000 0.0004877631 0.0102430249 0.0956015654 0.5204974118
[6] 1.0000000000

ump documentation built on May 1, 2019, 11:10 p.m.