sociomatrix {latentnet} | R Documentation |
Return the sociomatrix corresponding to a network object as a matrix.
See ergmm
for more information.
sociomatrix(object, matrix.type="adjacency", attrname = NULL)
object |
a network object. See documentation for the network
package. |
matrix.type |
one of "adjacency" , "edgelist" , "incidence" |
attrname |
an optional network attribute to return as an edge weight instead of the binary value. |
sociomatrix
returns a matrix of zeros and one
(or the attribute value) indicating the presence of a tie from i to j.
ergmm, network
# data(sampson) # # test the sociomatrix function # sociomatrix(samplike)