ergm.godfather | R Documentation |
Gives the network a series of proposals it can't refuse. Returns the statistics of the network, and, optionally, the final network.
ergm.godfather(
object,
changes = NULL,
...,
end.network = FALSE,
stats.start = FALSE,
changes.only = FALSE,
verbose = FALSE,
basis = NULL,
formula = NULL
)
## S3 method for class 'formula'
ergm.godfather(
object,
changes = NULL,
response = NULL,
...,
end.network = FALSE,
stats.start = FALSE,
changes.only = FALSE,
verbose = FALSE,
control = NULL,
basis = ergm.getnetwork(object)
)
## S3 method for class 'ergm_model'
ergm.godfather(
object,
changes = NULL,
...,
end.network = FALSE,
stats.start = FALSE,
changes.only = FALSE,
verbose = FALSE,
control = NULL,
basis = NULL
)
## S3 method for class 'ergm_state'
ergm.godfather(
object,
changes = NULL,
...,
end.network = FALSE,
stats.start = FALSE,
verbose = FALSE,
control = NULL
)
object |
An |
changes |
Either a matrix with three columns: tail, head, and new value, describing the changes to be made; or a list of such matrices to apply these changes in a sequence. For binary network models, the third column may be omitted. In that case, the changes are treated as toggles. Note that if a list is passed, it must either be all of changes or all of toggles. |
... |
additional arguments to |
end.network |
Whether to return a network that
results. Defaults to |
stats.start |
Whether to return the network statistics at
|
changes.only |
Whether to return network statistics or only their changes relative to the initial network. |
verbose |
A logical or an integer to control the amount of
progress and diagnostic information to be printed. |
basis |
a value (usually a |
formula |
Deprecated; replaced with |
response |
Either a character string, a formula, or
|
control |
Deprecated; arguments such as |
If end.network==FALSE
(the default), an
mcmc
object with the requested network statistics
associed with the network series produced by applying the
specified changes. Its mcmc
attributes encode the
timing information: so start(out)
gives the time
point associated with the first row returned, and
end(out)
out the last. The "thinning interval" is
always 1.
If end.network==TRUE
, return a network
object,
representing the final network, with a matrix of statistics
described in the previous paragraph attached to it as an
attr
-style attribute "stats"
.
ergm.godfather.ergm_model()
is a lower-level interface, providing
an ergm.godfather()
method for the ergm_model
class. The basis
argument is required.
ergm.godfather.ergm_model()
is a lower-level interface, providing
an ergm.godfather()
method for the ergm_model
class. The basis
argument is required.
tergm.godfather()
in tergm, simulate.ergm()
,
simulate.formula()
data(florentine)
ergm.godfather(flomarriage~edges+absdiff("wealth")+triangles,
changes=list(cbind(1:2,2:3),
cbind(3,5),
cbind(3,5),
cbind(1:2,2:3)),
stats.start=TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.