| NetInd.to.sparseAdjMat | R Documentation |
Convert simcausal network ID matrix (NetInd_k) into a network represented by a sparse adjacency matrix.
NetInd.to.sparseAdjMat(NetInd_k, nF)
NetInd_k |
Matrix of network IDs of dimension |
nF |
Integer vector of length |
Network represented as a sparse adjacency matrix (S4 class object dgCMatrix from package Matrix).
NOTE: The friend IDs for observation i will be listed in column i
(i.e, which(sparseAdjMat[,i]) are friends of i).
network; sparseAdjMat.to.igraph; igraph.to.sparseAdjMat; sparseAdjMat.to.NetInd;
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.