## S3 method for class 'pgam':
envelope(object, type = "deviance", size = 0.95, rep = 19, optim.method = NULL,
epsilon = 0.001, maxit = 100, plot = TRUE, title="Simulated Envelope of Residuals", verbose = FALSE, ...)pgam holding the fitted modeldeviance. Options are described in residuals.pgam.95 which is equivalent to a 95% band19pgampgamTRUE a plot of the envelope is producedTRUE a sort of information is printed during the running timeplot functionenvelope holding the information needed to plot the envelope.envelope.Sometimes the usual Q-Q plot shows an unsatisfactory pattern of the residuals of a model fitted and we are led to think that the model is badly specificated. The normal plot with simulated envelope indicates that under the distribution of the response variable the model is OK if only a few points fall off the envelope.
If object is of class pgam the envelope is estimated and optionally plotted, else if is of class envelope then it is only plotted.
pgam, predict.pgam, residuals.pgam