Function to construct multilevel networks from multimodal structures.
mlvl(x = NULL, y = NULL, type = c("bpn", "cn", "cn2", "list"), symCdm,
diag, lbs)
An object of ‘Multilevel
’ class of chosen type.
the multilevel network
(list) domain and codomain labels
a vector indicating the domain of the data in mlnet
where 1M
is for domain and 2M
is for the codomain.
domain data
codomain data
type of multilevel system:
bpn
for binomial projection
cn
for common membership network
cn2
for co-affiliation of network members
list
for the multimodal structures as a list
(optional and logical, only for bpn
) whether or not symmetrize the codomain structure
(optional and logical) whether or not include the entries in the diagonal matrices
(optional, only for cn2
) tie labels
Antonio Rivero Ostoic
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.
mlgraph
, multigraph
# 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)
Run the code above in your browser using DataLab