pv.contour.rc {ALTopt} | R Documentation |
Contour plot of prediction variance for a design with right censoring.
Description
pv.contour.rc
draws the contour plot of prediction variance
for a given design with right censoring plan. Either useCond
or
use region (useLower
and useUpper
) should be
provided.
Usage
pv.contour.rc(
design,
xAxis,
yAxis,
tc,
nf,
alpha,
formula,
coef,
useCond = NULL,
useLower = NULL,
useUpper = NULL
)
Arguments
design |
the data frame containing the coordinates and the number of
allocation of each design point. The design created by either
|
xAxis |
the name of the factor to be displayed in x axis. |
yAxis |
the name of the factor to be displayed in y axis. |
tc |
the censoring time. |
nf |
the number of stress factors. |
alpha |
the value of the shape parameter of Weibull distribution. |
formula |
the object of class formula which is the linear predictor model. |
coef |
the numeric vector containing the coefficients of each term in |
useCond |
the vector of specified use condition. If it is provided, the contour line will be generated up to this point. |
useLower , useUpper |
the vector of the use region. If these are
provided, the contour line will be generated up to this region.
Note that either |
Value
The contour plot of prediction variance for right censoring.
See Also
Examples
## Not run:
# Contour plot of prediction variance of U optimal design with right censoring.
Design <- altopt.rc("D", 100, 100, 2, 1, formula = ~ x1 + x2 + x1:x2,
coef = c(0, -4.086, -1.476, 0.01), useCond = c(1.758, 3.159))
pv.contour.rc(Design$opt.design.rounded, x1, x2, 100, 2, 1,
formula = ~ x1 + x2 + x1:x2, coef = c(0, -4.086, -1.476, 0.01), useCond = c(1.758, 3.159))
## End(Not run)