ergmx.constraints.DyadsConstraint#

class ergmx.constraints.DyadsConstraint(fix=None, vary=None)[source]#

Fix or free the dyads that dyad-independent terms count, as ergm’s Dyads(): with fix, the dyads where any of its terms’ statistics change are fixed; with vary, only those where any of its terms’ statistics change may vary; with both, the dyads that either lets vary.

fixed(network)[source]#

n x n mask of the dyads this constraint fixes at their observed value, for constraints that can’t say it more compactly (below).