hierar(W, x, type = c("person", "relation"))
Rel.Box
'
person
s' or for the `relation
s' in the network with respecto to `x'
person
hierarchy refers to the inclusion relations among the actors, whereas the relation
hierarchy refers to the inclusion relations among the ties. Both are from the perspective of a chosen actor of reference in the given network.
rbox
, cph
, partial.order
, diagram
## Create the data: 2 binary relations among 3 elements
arr <- round( replace( array( runif(18), c(3 ,3, 2) ), array( runif(18),
c(3, 3, 2) ) > .5, 3 ) )
## The relation box
rarr <- rbox(arr, k=1)
## Calculated the person hierarchy of a random actor
hierar(rarr, ceiling(runif(1, min=0, max=dim(arr)[2])))
Run the code above in your browser using DataLab