Coverage plots for binomial confidence intervals
Constructs coverage plots for binomial confidence intervals.
1 2 3 4
The number of independent trials in the binomial experiment.
The level of confidence to be used in the confidence interval.
Number of points to use in the plot.
The method used to estimate the confidence interval.
The actual confidence interval used in the confidence interval. See Details.
The minimum probability of success to use in the plot.
Additional arguments to pass to
"xyplot", a line plot is created with
coverage on the y-axis and binomial probability on the x-axis.
A separate panel for every
n is provided. If
provided then a horizontal reference line is added to the plot. This
is only useful when
actual is different from
as is the case when calling
"levelplot", a image plot is created with
n on the vertical axis and binomial
probability on the horizontal axis. Each row in the plot will be the
confidence level for a given
x. The color of the confidence
interval is determined by the coverage probability. The argument
n must only be of length one. If not, only the first
will be used and a warning is issued.
In either plot type, the number of points at which the coverage
probability is determined is specified by
np gives a finer granularity but performance will suffer.
An object of class
Sundar Dorai-Raj (firstname.lastname@example.org)
Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.