mixingmatrix.egor | R Documentation |
A mixingmatrix
method for
egor
objects, to return counts of how often a ego
of each group nominates an alter of each group.
## S3 method for class 'egor'
mixingmatrix(object, attrname, rowprob = FALSE, weight = TRUE, ...)
object |
A |
attrname |
A character vector containing the name of the network attribute whose mixing matrix is wanted. |
rowprob |
Whether the counts should be normalized by row sums. That is, whether they should be proportions conditional on the ego's group. |
weight |
Whether sampling weights should be incorporated into
the calculation ( |
... |
Additional arguments, currently unused. |
A matrix with a row and a column for each level of attrname
.
Note that, unlike mixingmatrix
, what is counted are
nominations, not ties. This means that under an egocentric census,
the diagonal of mixingmatrix.egor
will be twice that returned by
mixingmatrix
for the original undirected network.
mixingmatrix
, nodemix-ergmTerm
,
summary
method for egocentric data
data(faux.mesa.high)
fmh.ego <- as.egor(faux.mesa.high)
(mm <- mixingmatrix(faux.mesa.high,"Grade"))
(mm.ego <- mixingmatrix(fmh.ego,"Grade"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.