ergmx.mm#

ergmx.mm(attrs, levels=None, levels2=-1)[source]#

The cells of a mixing matrix, as ergm’s mm(): "A" (or "~A") for attribute A with itself, "A~B" for rows of A and columns of B (from senders to receivers, if directed), and "A~." or ".~B" for its margins. levels selects the levels of the attributes, levels2 the cells (by default all but the first).