NetSeries: A network series specification for conditional modeling.

NetSeriesR Documentation

A network series specification for conditional modeling.

Description

A function for specifying the LHS of a temporal network series ERGM.

Usage

NetSeries(..., order = 1, NA.impute = NULL)

Arguments

...

series specification, in one of three formats:

  1. A list of identically- dimensioned and directed networks.

  2. Several networks as arguments.

  3. A networkDynamic object and a numeric vector of time indices.

order

how many previous networks to store as an accessible covariate of the model.

NA.impute

How missing dyads in transitioned-from networks are be imputed when using conditional estimation. See argument imputers of impute.network.list() for details.

Value

A network object with temporal metadata.

Note

It is not recommended to modify the network returned by NetSeries except by adding and removing edges, and even that must be done with some care, to avoid putting it into an inconsistent state.

It is almost always better to modify the original networks and regenerate the series.

See Also

ergmTerm for specific terms.

Examples


data(samplk)

# Method 1: list of networks
monks <- NetSeries(list(samplk1,samplk2,samplk3))
ergm(monks ~ Form(~edges)+Diss(~edges))
ergm(monks ~ Form(~edges)+Persist(~edges))

# Method 2: networks as arguments
monks <- NetSeries(samplk1,samplk2,samplk3)
ergm(monks ~ Form(~edges)+Diss(~edges))
ergm(monks ~ Form(~edges)+Persist(~edges))

# Method 3: networkDynamic and time points:
## TODO


tergm documentation built on Oct. 8, 2024, 5:09 p.m.