SURnet {modnets}R Documentation

Creates temporal and contemporaneous network of SUR results

Description

A method for converting outputs from the systemfit::systemfit function into temporal and contemporaneous networks. Intended as an internal function of fitNetwork. Not intended for use by the user. The only purpose of making it available is to allow for extreme customization, and the capacity to convert any systemfit::systemfit output into a pair of network models compatible with the modnets package.

Usage

SURnet(
  fit,
  dat,
  s = "sigma",
  m = NULL,
  threshold = FALSE,
  mval = NULL,
  medges = 1,
  pcor = "none"
)

Arguments

fit

Output from SURfit

dat

A list containing elements "Y" and "X" elements, to reflect the outcome and predictor matrices. These are lagged data matrices, and can be automatically created through the internal modnets:::lagMat function. These transformed matrices must be supplied in conjunction with the SURfit output in order to construct network models.

s

Character string indicating which type of residual covariance matrix to compute for SUR models. Options include "res", "dfres", "sigma". "sigma" uses the residual covariance matrix as computed by the systemfit::systemfit function. "res" and "dfres" compute the matrix based directly on the residual values. "dfres" is the sample estimator that uses N - 1 in the denominator, while "res" just uses N.

m

Character string or numeric value to specify the moderator (if any).

threshold

See corresponding argument of fitNetwork

mval

Numeric. See corresponding argument of fitNetwork

medges

Numeric. See corresponding argument of fitNetwork

pcor

See corresponding argument of fitNetwork

Value

Temporal and contemporaneous networks

See Also

SURfit, fitNetwork, systemfit::systemfit


[Package modnets version 0.9.0 Index]