Last data update: 2014.03.03

R: Plot Abstract Randomized P-value
arpv.plotR Documentation

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

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

Results