"censorReg"
Object
censorReg
.
plot.censorReg(x, residuals = NULL, add.censored = F,smooths = F, rugplot = T, id.n = 0, ask = F, mle =T, mle.interval = F, coverage = 0.95, reliabilities = c(0.1,0.5,0.9), which.plots = NULL, ...)
"censorReg"
.
residuals
is a vector with the same length as each fitted term in
x
,
then these are taken to be the residuals to be used in the plots.
TRUE
, adds censored observations to the appropriate
plots. Right censored observations are represented by a
+
, left censored by
a
-
and interval observations by a diamond.
TRUE
, adds smooth curves to the appropriate plots
scatterplots using
loess.smooth
.
TRUE
, adds a univariate histogram or
rugplot
along the base of each plot, showing the occurrence of each x-value;
ties are broken by jittering.
id.n
largest points in absolute value. Set to
FALSE
if no identified
points are desired. Default: 3.
TRUE
, operates
plot.censorReg
in interactive mode.
TRUE
, displays the maximum likelihood estimate(s) of
the distribution(s).
TRUE
, adds confidence intervals for the maximum
likelihood estimate of failure distribution.
"auto"
for automatic placement.
Residuals vs. Fitted Values
id.n
largest points (in absolute value), depending on the options chosen. Censored observations can be added to the first four plots. The last three plots are available only for models with a single covariate.
This function is a method for the generic function
plot
for class
censorReg
.
It can be invoked by calling
plot
for an object of the appropriate class.
When
ask=T
, rather than produce each plot sequentially,
plot.censorReg
displays a menu listing all the plots that can be produced.
If the menu is not desired but a pause between plots is still wanted
one must set
par(ask=T)
before invoking this command with argument
ask=F
.
fit <- censorReg(censor(days, event) ~ voltage, data = capacitor2, weights = weights) plot(fit, ask=T) # interactive version plot(fit, smooths=T, rugplot=T) plot(fit, id.n=10) plot(fit, id.n=10, add.legend = T, legend.loc = "auto", sn.add.legend = T, sn.legend.loc = "auto")