Learn R Programming

fit.models (version 0.64)

fmclass.register: Register Comparable Functions

Description

The fit.models package maintains a list of comparable models. These functions provide an api to modify this list.

Usage

fmclass.register(fmclass, classes, validation.function = NULL)

fmclass.add.class(fmclass, class, warn = TRUE)

Arguments

fmclass

a character string naming the fit.models class to be added.

classes

a character vector naming one or more classes that can be compared by the methods defined for the fit.models class in fmclass.

validation.function

a function returning TRUE when the models are comparable.

class

a character string specifying a class compatible with the methods of fmclass.

warn

a logical value. If TRUE, a warning is printed if class is already registered.

Value

a null value is invisibly returned.

Details

See the package vignette.