deviance: Calculate deviance

Description Usage Arguments Value

View source: R/helper_outlier.R

Description

This function calculates the affine value T(y) of -2 log likelihood-ratio statistic which is also called the deviance

Usage

1
2
3
4
5
6
7
deviance(x, y, ...)

## S3 method for class 'outlier_model'
deviance(x, y, ...)

## S3 method for class 'mixed_outlier'
deviance(x, y, ...)

Arguments

x

A outlier_model object

y

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)

Value

The deviance test statistic of y based on the model x


molic documentation built on June 2, 2021, 5:07 p.m.