hierar | R Documentation |
Function to establish either the Person or the Relation Hierarchy in a multiple network
hierar(W, x, type = c("person", "relation"))
W |
an object of ‘ |
x |
(integer or character) actor of reference, either by its location in the adjacency matrix or by the label. |
type |
whether the hierarchy with respect to network “
|
The person
hierarchy refers to the inclusion relations among the actors, whereas the relation
hierarchy refers to the inclusion relations among the ties,
and both are from the perspective of a chosen actor of reference in the given network.
An array that represents the partial order structure of the respective hierarchy.
The cumulative person hierarchy is obtained through the cph
function.
Antonio Rivero Ostoic
Breiger, R.L. and P.E. Pattison, “Cumulated social roles: The duality of persons and their algebras,” Social Networks, 8, 215-256. 1986.
rbox
, cph
, partial.order
, diagram
# create the data: two binary relations among three elements
arr <- round( replace( array( runif(18), c(3 ,3, 2) ), array( runif(18),
c(3, 3, 2) ) > .5, 3 ) )
# compute person hierarchy of a random actor from relation box
arr |> rbox(k=1) |>
hierar(ceiling(runif(1, min=0, max=dim(arr)[2])), type="person")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.