Learn R Programming

multiplex (version 2.3)

rbox: Construct the Relation-Box

Description

Function to construct the Relation-Box of a multiple network

Usage

rbox(w, transp = FALSE, smpl = FALSE, tlabels = NULL, k = 3)

Arguments

w
an array with three dimensions of stacked matrices of generating relations.
transp
(logical) whether or not the transpose of each matrix in $w$ should be included.
smpl
(logical) whether to simplify or not the strings of relations
tlabels
(optional) a vector with the labels for the transpose relations.
k
length of the Relation-Box in $z$

Value

An object of the `Rel.Box' class.

Details

If transp = TRUE the labels of the transpose are toggle case of the labels of the original matrices, and in such case it is adviced to simplify the strings of relations. In order to prevent a transposed structure for a certain array of w, use NA in the vector the transpose labels tlabels corresponding to the respective matrix.

References

Winship, C. and M.J. Mandel `Roles and positions: A critique and extension of the blockmodelling approach,' Sociological Methodology, 314-344. 1983.

See Also

cph, semigroup, hierar

Examples

Run this code
## 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, 1 ) )

## The relation box
rbox(arr, k=1)

Run the code above in your browser using DataLab