powered by
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 )
dyadicCovar( m, isSymmetric = FALSE, isBipartite = FALSE, nodeSet = NULL, nodes = NULL )
An object of class "network.monan".
A square matrix containing the network data.
Currently not in use.
Which nodeset are the nodes of the network. Usually this will be the locations in the data.
Alternative way to specify the nodeSet by naming nodes: nodes denote the locations in the edgelist
createProcessState(), createEdgelist()
createProcessState()
createEdgelist()
# 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