Learn R Programming

tergm (version 4.2.1)

NetSeries: 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)

Value

A network object with temporal metadata.

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.

See Also

ergmTerm for specific terms.

Examples

Run this code

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

Run the code above in your browser using DataLab