This matrix demonstrates an internal data structure of how
tmlenet stores the input network.
The network in this matrix is derived from the column
"Net_str" of the dataset
Both, this matrix and the vector of strings in column
"Net_str", represent the same network and both can be used
for specifying the input network to
The network matrix may be specified by using the argument
NETIDmat of the
Inputing the network via this type of a matrix may lead to significant reduction in total run time,
since any network specified as a vector of strings, such as in column "Net_str",
will be first converted to this type of matrix representation.
See below and Example 3 in
tmlenet help file for examples constructing this matrix from the initial network input in
This matrix consists of
1000 rows and
6 columns. Each row
i encodes a vector of network IDs of observation
NetInd_mat_Kmax6[,i] contains a vector of observation row numbers in
df_netKmax6 that are presumed "connected to" (or "friends of")
i. Each observation can have at most 6 friends and if an observation
i has fewer than 6 friends the remainder row
NetInd_mat_Kmax6[,i] is filled with
1 2 3 4 5 6
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.