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.monansameRegion <- outer(orgRegion, orgRegion,"==")*1sameRegion <- createNetwork(sameRegion, nodeSet = c("organisations","organisations"))