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.
SURnet(
fit,
dat,
s = "sigma",
m = NULL,
threshold = FALSE,
mval = NULL,
medges = 1,
pcor = "none"
)
Output from SURfit
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.
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
.
Character string or numeric value to specify the moderator (if any).
See corresponding argument of fitNetwork
Numeric. See corresponding argument of fitNetwork
Numeric. See corresponding argument of fitNetwork
See corresponding argument of fitNetwork
Temporal and contemporaneous networks