This function calculates the affine value T(y)
of -2 log
likelihood-ratio statistic which is also called the deviance
deviance(x, y, ...)# S3 method for outlier_model
deviance(x, y, ...)
# S3 method for mixed_outlier
deviance(x, y, ...)
A outlier_model
object
An observation (named character vector). If x
is of class mixed_outlier
it should be a data.frame
with two rows.
Not used (for S3 compatibility)
The deviance test statistic of y
based on the model x