binom.prediction: Binomial prediction interval

View source: R/binom.prediction.r

binom.predictionR Documentation

Binomial prediction interval

Description

Binomial prediction interval

Usage

binom.prediction(n, p, level = 0.95)

Arguments

n

number of Bernoulli trials

p

probability of success

level

level of confidence

Examples

p <- seq(0,1,length = 1001)
IP <- binom.prediction(19, p)
plot(p, 19*p, type = "n", ylab = "x", main = "prediction intervals")
polygon( c(p, rev(p)), c(IP[1,], rev(IP[2,])), col = "red")

HervePerdry/M1SP documentation built on Dec. 16, 2024, 8:19 p.m.