mlvl {multiplex} | R Documentation |
Construct Multilevel Networks
Description
Function to construct multilevel networks from multimodal structures.
Usage
mlvl(x = NULL, y = NULL, type = c("bpn", "cn", "cn2", "list"), symCdm,
diag, lbs)
Arguments
x |
domain data |
y |
codomain data |
type |
type of multilevel system:
|
symCdm |
(optional and logical, only for |
diag |
(optional and logical) whether or not include the entries in the diagonal matrices |
lbs |
(optional, only for |
Details
The default multilevel system is a binomial projection bpn
that requires data for the two domains, as with
cn2
as well.
Option cn
does not need the domain in x
since returns the co-affiliation of network members from the codomain structure.
Since these are different components in the multilevel system for co-affiliation of network members,
it is possible to specify the domain and codomain labels in lbs
as a list object.
Making symmetric the codomain structure with symCdm
is many times convenient for visualization purposes.
Value
An object of 'Multilevel
' class of chosen type.
mlnet |
the multilevel network |
lbs |
(list) domain and codomain labels |
modes |
a vector indicating the domain of the data in |
Author(s)
Antonio Rivero Ostoic
See Also
Examples
# array for the domain
arr1 <- round( replace( array(runif(18), c(3,3,2)), array(runif(18), c(3,3,2))>.9, 3 ) )
# rectangle array for the co-domain
arr2 <- round( replace( array(runif(12), c(3,2,2)), array(runif(12), c(3,2,2))>.9, 3 ) )
# multilevel system with default type
mlvl(arr1, arr2)