sem.net.addvar.stat {networksem} | R Documentation |
Compute a list of user-specified network statistics values using the "sna" package and add them to the non-network data.
Description
Compute a list of user-specified network statistics values using the "sna" package and add them to the non-network data.
Usage
sem.net.addvar.stat(
model.network.stat.var.list,
data,
model.network.var.i,
stats,
statsname,
netstats.rescale,
netstats.options = NULL
)
Arguments
model.network.stat.var.list |
a list of elements with names corresponding to the network names and values corresponding to lists of network statistics that will be calculated for the corresponding network |
data |
a list containing both the non-network and network data |
model.network.var.i |
an index indicating a specific network within all networks |
stats |
a network statistics that can be calculated using package "sna" |
statsname |
name of the network statistics |
netstats.rescale |
a logical value indicating whether to rescale network statistics to have mean 0 and sd 1 |
netstats.options |
a list with names being the argument names for calculating the network statistics, and values being the argument values |
Value
a list with the first value being the list of network statistics names and the second value being the data frame with added network statistics