Learn R Programming

ump (version 0.5-6)

arpv.plot: Plot Abstract Randomized P-value

Description

Plot ether the distribution function or the probability density function of an abstract randomized P-value

Usage

arpv.plot(alpha, phi, df = TRUE, verticals = TRUE)

Arguments

alpha
significance levels at which the density is discontinuous ("knots").
phi
values of the distribution function at these knots.
df
if TRUE plot the distribution function, otherwise the density.
verticals
if TRUE plot vertical lines at the jumps of the density. Ignored if df == TRUE.

Value

none.

Examples

Run this code
out <- arpv.binom(10, 10, 0.7)
arpv.plot(out$alpha, out$phi)
arpv.plot(out$alpha, out$phi, df = FALSE)

Run the code above in your browser using DataLab