Learn R Programming

ergm (version 3.9.4)

newnw.extract: Internal function to create a new network from the ergm MCMC sample output

Description

An internal function to generate a new network object using the output (lists of toggled heads and tail vertices) from an ERGM MCMC or SAN process.

Usage

newnw.extract(oldnw, z = NULL, output = "network", response = NULL)

Arguments

oldnw

a network object (presumably input to the ergm process) from which the network- and vertex-level attributes will be copied

z

a list having either a component named newedgelist or two components newtails and newheads containing the ids of the head and tails vertices of the edges. Optionally, it may also contain newweights, containing edgewights. If not passed, newnw.extract searches for an .update network attribute on oldnw and attempts to use that instead, deleting it from the returned network.

output

passed to network.update, which claims not to use it

response

optional character string giving the name of the edge attribute where the edge values (weight/count) should be stored.

Value

a network object with properties copied from oldnw and edges corresponding to the lists of tails and head vertex ids in z

See Also

network.edgelist, network.update