Usage
plotTolIntNparDesign(x.var = "n", y.var = "conf.level", range.x.var = NULL, n = 25,
coverage = 0.95, conf.level = 0.95, ti.type = "two.sided", cov.type = "content",
ltl.rank = ifelse(ti.type == "upper", 0, 1),
n.plus.one.minus.utl.rank = ifelse(ti.type == "lower", 0, 1), plot.it = TRUE,
add = FALSE, n.points = 100, plot.col = "black", plot.lwd = 3 * par("cex"),
plot.lty = 1, digits = .Options$digits, cex.main = par("cex"), ..., main = NULL,
xlab = NULL, ylab = NULL, type = "l")
Arguments
x.var
character string indicating what variable to use for the x-axis. Possible values are
"n"
(sample size; the default), "coverage"
(the coverage), and "conf.level"
(the confidence level).
y.var
character string indicating what variable to use for the y-axis. Possible values are
"conf.level"
(the confidence level; the default), "n"
(sample size), and
"coverage"
(the coverage).
range.x.var
numeric vector of length 2 indicating the range of the x-variable to use for the plot. The
default value depends on the value of x.var
. When x.var="n"
the default value is
c(2,50)
. When x.var="covera
n
numeric scalar indicating the sample size. The default value is
max(25, lpl.rank + n.plus.one.minus.upl.rank + 1)
.
Missing (NA
), undefined (NaN
), and infinite (Inf
, -Inf
)
valu
coverage
numeric scalar between 0 and 1 specifying the coverage of the tolerance interval. The default
value is coverage=0.95
. This argument is ignored if x.var="coverage"
or
y.var="coverage"
.
conf.level
a scalar between 0 and 1 indicating the confidence level associated with the tolerance interval.
The default value is conf.level=0.95
. This argument is ignored if x.var="conf.level"
or y.var="conf.level"
, o
ti.type
character string indicating what kind of tolerance interval to compute.
The possible values are "two-sided"
(the default), "lower"
, and
"upper"
.
cov.type
character string specifying the coverage type for the tolerance interval.
The possible values are "content"
($\beta$-content; the default), and
"expectation"
($\beta$-expectation).
ltl.rank
vector of positive integers indicating the rank of the order statistic to use for the lower bound
of the tolerance interval. If ti.type="two-sided"
or ti.type="lower"
,
the default value is ltl.rank=1
(implyi
n.plus.one.minus.utl.rank
vector of positive integers related to the rank of the order statistic to use for
the upper bound of the tolerance interval. A value of
n.plus.one.minus.utl.rank=1
(the default) means use the
first largest value, and in general a
plot.it
a logical scalar indicating whether to create a plot or add to the
existing plot (see add
) on the current graphics device. If
plot.it=FALSE
, no plot is produced, but a list of (x,y) values
is returned (see VALUE). T
add
a logical scalar indicating whether to add the design plot to the
existing plot (add=TRUE
), or to create a plot from scratch
(add=FALSE
). The default value is add=FALSE
.
This argument is ignored if
n.points
a numeric scalar specifying how many (x,y) pairs to use to produce the plot.
There are n.points
x-values evenly spaced between
range.x.var[1]
and range.x.var[2]
. The default value is
n.points=100<
plot.col
a numeric scalar or character string determining the color of the plotted
line or points. The default value is plot.col="black"
. See the
entry for col
in the help file for par
plot.lwd
a numeric scalar determining the width of the plotted line. The default value is
3*par("cex")
. See the entry for lwd
in the help file for par
for more information. plot.lty
a numeric scalar determining the line type of the plotted line. The default value is
plot.lty=1
. See the entry for lty
in the help file for par
for more information. digits
a scalar indicating how many significant digits to print out on the plot. The default
value is the current setting of options("digits")
. cex.main, main, xlab, ylab, type, ...
additional graphical parameters (see par
).