envelope | R Documentation |
envelope
is used to display normal probability plots with simulated
envelope of residuals for the power logit models. Currently, three types of
residuals are supported: quantile, deviance and standardized residuals.
envelope( object, type = c("quantile", "deviance", "standardized"), rep = 40, conf = 0.95, xlab, ylab, main, envcol, ylim, xlim )
object |
fitted model object of class " |
type |
character specifying the type of residuals to be used,
see |
rep |
a positive integer representing the number of iterations to calculate
the simulated envelopes. Default is |
conf |
a numeric value in the interval (0,1) that represents the confidence
level of the simulated envelopes. Default is |
xlab |
character specifying the label for x axis (optional). Default is
" |
ylab |
character specifying the label for y axis (optional). Default is the name of the used residual. |
main |
character specifying the overall title for the plot. |
envcol |
character specifying the color of the envelope. |
ylim, xlim |
numeric values, specifying the left/lower limit and the right/upper limit of the scale. |
The envelope
uses the idea of Atkinson (1985) to create normal
probability plots with simulated envelope. Under the correct model,
approximately 100*conf
of the residuals are expected to be inside
the envelope.
envelope
returns normal probability plot with simulated envelopes
for the residuals.
Queiroz, F. F. and Ferrari, S. L. P. (2022). Power logit regression
for modeling bounded data. arXiv:2202.01697.
Atkinson, A. C. (1985) Plots, transformations and regression: an introduction
to graphical methods of diagnostic regression analysis.
Oxford Science Publications, Oxford.
PLreg
, residuals.PLreg
data("Firm") fitPL <- PLreg(firmcost ~ sizelog + indcost | sizelog + indcost, data = Firm, family = "SLASH", zeta = 2.13) summary(fitPL) envelope(fitPL, type = "standardized") envelope(fitPL, type = "quantile") envelope(fitPL, type = "deviance")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.