View source: R/binom.prediction.r
binom.prediction | R Documentation |
Binomial prediction interval
binom.prediction(n, p, level = 0.95)
n |
number of Bernoulli trials |
p |
probability of success |
level |
level of confidence |
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")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.