residuals | R Documentation |
Returns residuals values from the estimated model
## S3 method for class 'gamljlmResults'
residuals(object, ...)
## S3 method for class 'gamljglmResults'
residuals(object, type = "deviance", ...)
## S3 method for class 'gamljmixedResults'
residuals(object, ...)
## S3 method for class 'gamljgmixedResults'
residuals(object, type = "deviance", ...)
object |
a gamlj results object of the class 'gamlj*Results' |
... |
additional arguments for specific residuals methods. |
type |
the type of residuals for generalized models. The alternatives are: 'deviance' (default), 'pearson', 'working', 'response', and 'partial'. Can be abbreviated.
Cf. |
a R object of the class of the estimated model
Marcello Gallucci
data('qsport')
gmod<-GAMLj3::gamlj_lm(
formula = performance ~ hours,
data = qsport)
preds<-residuals(gmod)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.