createNetwork {MoNAn}R Documentation

createNetwork

Description

Defines a network between locations, generally to be used as a predictor in the model. NOTE: The outcome variable of the model is not defined as a network, but as an edgelist!

Usage

createNetwork(
  m,
  isSymmetric = FALSE,
  isBipartite = FALSE,
  nodeSet = NULL,
  nodes = NULL
)

dyadicCovar(
  m,
  isSymmetric = FALSE,
  isBipartite = FALSE,
  nodeSet = NULL,
  nodes = NULL
)

Arguments

m

A square matrix containing the network data.

isSymmetric

Currently not in use.

isBipartite

Currently not in use.

nodeSet

Which nodeset are the nodes of the network. Usually this will be the locations in the data.

nodes

Alternative way to specify the nodeSet by naming nodes: nodes denote the locations in the edgelist

Value

An object of class "network.monan".

See Also

createProcessState(), createEdgelist()

Examples

# create an object of class network.monan
sameRegion <- outer(orgRegion, orgRegion, "==") * 1
sameRegion <- createNetwork(sameRegion, nodeSet = c("organisations", "organisations"))

[Package MoNAn version 1.0.0 Index]