Skip to content

Register a custom diagnostic

Source: man/registerDiagnostic.Rd ยท Help: ?registerDiagnostic

Adds a function to the diagnostics registry so it can be called by runHeteroTests.

Usage

registerDiagnostic(name, fun)

Arguments

name
Name of the diagnostic.
fun
Function taking model and data arguments.

Value

Invisibly returns NULL.

See also

listDiagnostics for the names already registered.

Examples

custom <- function(model, data) list(statistic = 0)
registerDiagnostic("custom", custom)