Convert network represented by a sparse adjacency matrix into
simcausal network IDs matrix (
Network represented as a sparse adjacency matrix (S4 class object
Trim the maximum number of friends to this integer value. If this argument is not missing,
the conversion network matrix obtained from
A named list with 3 items: 1)
nF; and 3)
NetInd_k - matrix of network IDs of dimension
(n=nrow(sparseAdjMat),Kmax), where each row
i consists of the network IDs (friends) for observation
Remainders are filled with NAs.
nF - integer vector of length
n specifying the number of friends for each observation.
Kmax - integer constant specifying the maximum observed number of friends in input
sparseAdjMat (this is the column dimension for the output matrix
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.