Learn R Programming

MoNAn (version 1.1.0)

createNetwork: 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 )

Value

An object of class "network.monan".

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

See Also

createProcessState(), createEdgelist()

Examples

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

Run the code above in your browser using DataLab