Description Usage Arguments Details Value Author(s) References See Also Examples
Extract and/or plot the model residuals
1 2 |
x |
a model fitted by |
gaps |
a logical indicating whether |
type |
a quoted string indicating the type of residuals to extract. Default is |
band |
a vector limits to plot the band. If |
date.format |
a string indicating the date format for the horizontal axis. Default is |
new |
if |
... |
further options for |
If x
is a model then the residuals are extracted with get_residuals
. If x
is a vector of the class residuals
the function works as a method for the generic function plot
, therefore only the graph is plotted.
A vector of class residuals
with extracted and/or adjusted residuals of the model.
Washington Junger wjunger@ims.uerj.br and Antonio Ponce de Leon ponce@ims.uerj.br
McGullagh, P., Nelder, J. A. (1989) Generalized linear models. Chapman and Hall.
Hastie, T., Tibshirani, R. (1990) Generalized additive models. 2 ed. Chapman and Hall.
Pierce, D. A., Schafer, D. W. (1986) Residuals in generalized linear models. Journal of the American Statistical Association, 81(396),977–986.
1 2 3 4 5 6 7 8 9 10 | data(admrio)
setup(admrio,"date")
f <- resp5~s(time)+weekdays+s(tmpmax)+s(humid)
m <- fit_core(f)
## extract the residuals and plot
r1 <- plot_residuals(m)
## extract first then plot
r <- get_residuals(m,"adj_deviance")
plot(r)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.