Learn R Programming

ergm (version 3.5.1)

is.curved: Testing for curved exponential family

Description

These functions test whether an ERGM fit or formula is curved.

Usage

## S3 method for class 'ergm':
is.curved(object, ...)
## S3 method for class 'formula':
is.curved(object, 
                    response=NULL,
                    basis=NULL,
                    \dots)
## S3 method for class 'ergm.model':
is.curved(object, ...)
## S3 method for class 'NULL':
is.curved(object, ...)

Arguments

object
An ergm object or an ERGM formula.
response, basis
Name of the edge attribute whose value is to be modeled. See ergm.
...
Unused at this time.

Value

  • TRUE if the model fit or one implied by the formula is curved; FALSE otherwise.

Details

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