Learn R Programming

holiglm (version 1.0.1)

hglmc: Generic Functions for hglmc Objects

Description

Generic functions for holistic 'GLM' constraints.

Usage

# S3 method for hglmc
c(...)

is.hglmc(x)

Value

The combine function c() returns an object of class "hglmc". The is.hglmc function returns TRUE if the object inherits from class "hglmc" otherwise FALSE.

Arguments

...

multiple objects inheriting from "hglmc" to be combined.

x

an R object.

Details

The 'HGLM' constraints are all of class "hglmc" and can be combined with the typical combine function c(). To verify that an object is a 'HGLM' constraint, the function is.hglmc can be used.

Examples

Run this code
constraints <- c(k_max(7), pairwise_sign_coherence())
is.hglmc(constraints)

Run the code above in your browser using DataLab