residuals: Residuals values from GAMLj models

residualsR Documentation

Residuals values from GAMLj models

Description

Returns residuals values from the estimated model

Usage

## 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", ...)

Arguments

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. stats::residuals(), stats::residuals.lm(), stats::residuals.glm()

Value

a R object of the class of the estimated model

Author(s)

Marcello Gallucci

Examples

data('qsport')
gmod<-GAMLj3::gamlj_lm(
   formula = performance ~ hours,
   data = qsport)
 preds<-residuals(gmod)
 

gamlj/gamlj documentation built on April 17, 2024, 7:51 p.m.