Learn R Programming

ergm (version 3.9.4)

is.curved: Testing for curved exponential family

Description

These functions test whether an ERGM fit, formula, or some other object represents a curved exponential family.

The method for NULL always returns FALSE by convention.

Usage

is.curved(object, ...)

# S3 method for NULL is.curved(object, ...)

# S3 method for formula is.curved(object, response = NULL, basis = NULL, ...)

# S3 method for ergm is.curved(object, ...)

Arguments

object

An ergm object or an ERGM formula.

Arguments passed on to lower-level functions.

response

Name of the edge attribute whose value is to be modeled in the valued ERGM framework. Defaults to NULL for simple presence or absence, modeled via a binary ERGM.

basis

See ergm().

Value

TRUE if the object represents a curved exponential family; FALSE otherwise.

Details

Curvature is checked by testing if all model parameters are canonical.