R/InitWtErgmProposal.R

Defines functions InitWtErgmProposal.AlterSwap

Documented in InitWtErgmProposal.AlterSwap

#  File R/InitWtErgmProposal.R in package ergm.rank, 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-2022 Statnet Commons
################################################################################

#' @templateVar name AlterSwap
#' @aliases InitWtErgmProposal.AlterSwap
#' @title A proposal that swaps values of two alters incident on an ego
#' @description This proposal randomly selects two dyads \eqn{(i,j)} and \eqn{(i,j')} with a common sender and proposes to swap their values if distinct.
#' @template ergmProposal-general
#' @concept valued
#' @concept ordinal
NULL

InitWtErgmProposal.AlterSwap <- function(arguments, nw) {
  MHproposal <- list(name = "AlterSwap", inputs=NULL)
  MHproposal
}

Try the ergm.rank package in your browser

Any scripts or data that you put into this service are public.

ergm.rank documentation built on June 2, 2022, 1:06 a.m.