createNetwork function

createNetwork

createNetwork

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!

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

Returns

An object of class "network.monan".

Examples

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

See Also

createProcessState(), createEdgelist()

  • Maintainer: Per Block
  • License: GPL (>= 3)
  • Last published: 2024-09-12

Useful links