# File R/InitErgmConstraint.hints.R in package tergm, part of the
# Statnet suite of packages for network analysis, https://statnet.org .
#
# This software is distributed under the GPL-3 license. It is free,
# open source, and has the attribution requirements (GPL Section 7) at
# https://statnet.org/attribution .
#
# Copyright 2008-2024 Statnet Commons
################################################################################
#' @templateVar name discord
#' @title Discordant dyads
#' @description Propose toggling discordant dyads with greater
#' frequency (typically about 50 percent). May be used in
#' dynamic fitting and simulation.
#'
#' @usage
#' # discord
#'
#' @template ergmHint-general
#' @concept dyad-independent
InitErgmConstraint.discord <- function(lhs.nw, ref=NULL, ...){
nw <- if(is.character(ref)) lhs.nw %n% ref else lhs.nw
if(...length())
ergm_Init_abort(paste("discord hint takes at most one arguments at this time."))
list(dependence = FALSE, priority=10, nw=nw)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.