View source: R/plot.summary.censReg.R
plot.summary.censReg | R Documentation |
Plot summary AMLE/MLE model diagnostics.
## S3 method for class 'summary.censReg' plot(x, which = "All", set.up = TRUE, span = 1, ...)
x |
an object of class "censReg"—output from |
which |
either "All" or any of a sequence from 1 to 7 indicating which plot, see Details. |
set.up |
set up the graphics page? |
span |
the span to use for the loess smooth. Set to 0 to suppress. |
... |
further arguments passed to or from other methods. |
Seven graphs can be produced by this function. If which
is "All," then all plots are produced.
The argument which
can also be the name of an explanatory variable so that a partial residual
plot is created for a single variable. Or which
can be any of a sequence of numbers from 1 thorugh 7.
Numeric values for which
:
Fitted vs. Observed
Fitted vs. Residual
S-L plot
A correlogram if dates are available in the model or in the data set
Q-normal plot
Influence plot
Partial residual plots for each explanatory variable
The object x
is returned invisibly.
The q-normal plot (number 5) plots the working residuals and portrays fits
for relatively small percentages of censoring very well. For larger percentages of
censoring, the q-normal plot in plot.censReg
(number 2) can portray the
normality of the residuals more accurately.
censReg
, plot.censReg
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.