R: Internal function to create a new network from the ergm MCMC...

newnw.extract {ergm} | R Documentation

## 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, 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. Optionall `newweights` containing edgewights.
`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`

### Note

This is an internal ergm function, it most cases with edgelists to be converted to networks it will probably be simpler to use `network.edgelist`

### See Also

`network.edgelist`, `network.update`

[Package ergm version 3.8.0 Index]