residuals.pclm2D | R Documentation |
Extract PCLM-2D Deviance Residuals
## S3 method for class 'pclm2D'
residuals(object, ...)
object |
an object for which the extraction of model residuals is meaningful. |
... |
other arguments. |
Residuals extracted from the object object
.
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.