Last data update: 2014.03.03

R: Register Comparable Functions
fmregistryR Documentation

Register Comparable Functions

Description

The fit.models package maintains a list of comparable models called the fit.models registery. These functions provide a method for adding new classes of models to the fit.models registery.

Usage

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

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

Arguments

fmclass

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

classes

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

class

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

validation.function

a function returning TRUE when the models are comparable.

warn

a logical value. If TRUE, a warning is printed if class is already registered in the fit.models.registery.

Details

See the package vignette.

Value

a null value is invisibly returned.

Results