residuals.pclm2D: Extract PCLM-2D Deviance Residuals

Description Usage Arguments Value Examples

View source: R/pclm_2D.R

Description

Extract PCLM-2D Deviance Residuals

Usage

1
2
## S3 method for class 'pclm2D'
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

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
Dx <- ungroup.data$Dx
Ex <- ungroup.data$Ex

# Aggregate data to ungroup it in the example below
x      <- c(0, 1, seq(5, 85, by = 5))
nlast  <- 26
n      <- c(diff(x), nlast)
group  <- rep(x, n)
y      <- aggregate(Dx, by = list(group), FUN = "sum")[, -1]

# Example
P1 <- pclm2D(x, y, nlast)

residuals(P1)

ungroup documentation built on June 28, 2021, 5:08 p.m.