# hierar: Person and Relation Hierarchy In multiplex: Algebraic Tools for the Analysis of Multiple Social Networks

## Description

A function to establish either the Person or the Relation Hierarchy in a multiple network

## Usage

 `1` ```hierar(W, x, type = c("person", "relation")) ```

## Arguments

 `W` an object of '`Rel.Box`' `x` (integer or character) the actor of reference, either by its location in the adjacency matrix or by the label. `type` whether the hierachy is for the '`person`s' or for the '`relation`s' in the network with respecto to ‘x’

## Details

The `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.

## Value

An array that represents the partial order structure of the respective hierarchy.

## Note

The cumulation of the person hierarchy is obtained through the `cph` function.

## Author(s)

Antonio Rivero Ostoic

## References

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`
 ```1 2 3 4 5 6 7 8 9``` ```## 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]))) ```