sem.net.addvar.influential {networksem}R Documentation

Compute a list of user-specified network statistics using the "influential" package and add it to the existing data.

Description

Compute a list of user-specified network statistics using the "influential" package and add it to the existing data.

Usage

sem.net.addvar.influential(
  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 "influential"

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


[Package networksem version 0.4 Index]