S3 Functions that initialize the Metropolis-Hastings Proposal (ergm_proposal)
object using the InitErgmProposal.*
function that corresponds to the name given in
'object'. These functions are not generally called directly by the user.
See ergm-proposals for general explanation and lists of available
Metropolis-Hastings proposal types.
ergm_proposal(object, ...)# S3 method for character
ergm_proposal(object, arguments, nw, ...,
response = NULL, reference = reference)
# S3 method for formula
ergm_proposal(object, arguments, nw,
weights = "default", class = "c", reference = ~Bernoulli,
response = NULL, ...)
# S3 method for ergm
ergm_proposal(object, ..., constraints = NULL,
arguments = NULL, nw = NULL, weights = NULL, class = "c",
reference = NULL, response = NULL)
Further arguments passed to other functions.
A list of parameters used by the InitErgmProposal routines
The network object originally given to ergm
via 'formula'
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.
One-sided formula whose RHS gives the reference
measure to be used. (Defaults to ~Bernoulli
.)
Specifies the method used to allocate probabilities of being proposed to dyads; options are "TNT", "TNT10", "random", "nonobserved" and "default"; default="default"
The class of the proposal; choices include "c", "f", and "d" default="c".
A one-sided formula specifying one or more constraints on
the support of the distribution of the networks being simulated. See the
documentation for a similar argument for ergm
and see
list of implemented constraints for more information.
Returns an ergm_proposal object: a list with class ergm_proposal
containing the following named elements:
the C name of the proposal
inputs to be passed to C
shared library name where the proposal
can be found (usually "ergm"
)
list of arguments passed to
the InitErgmProposal
function; in particular,
constraints
list of constraints
character
: object
argument is a character string
giving the R name of the proposal.
formula
: object
argument is an ERGM constraint formula.
ergm
: object
argument is an ergm
fit whose proposals are extracted which is reproduced as best as possible.