Skip to contents

Extract PCLM Deviance Residuals

Usage

# S3 method for class 'pclm'
residuals(object, ...)

Arguments

object

an object for which the extraction of model residuals is meaningful.

...

other arguments.

Value

Residuals extracted from the object object.

Examples

x <- c(0, 1, seq(5, 85, by = 5))
y <- c(294, 66, 32, 44, 170, 284, 287, 293, 361, 600, 998, 
       1572, 2529, 4637, 6161, 7369, 10481, 15293, 39016)
M1 <- pclm(x, y, nlast = 26)

residuals(M1)
#>       [0,1)       [1,5)      [5,10)     [10,15)     [15,20)     [20,25) 
#>  1.74505512 -2.35334942  0.97865811 -0.61286069  0.38886872 -0.18193810 
#>     [25,30)     [30,35)     [35,40)     [40,45)     [45,50)     [50,55) 
#>  0.05232172 -0.01199429 -0.02183700  0.02509053 -0.01715600  0.03138002 
#>     [55,60)     [60,65)     [65,70)     [70,75)     [75,80)     [80,85) 
#> -0.05984136  0.05847032 -0.01451729 -0.01950598  0.01641142 -0.02475637 
#>    [85,111) 
#>  0.02149867