Learn R Programming

multiplex (version 3.7)

mlvl: 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)

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 mlnet where 1M is for domain and 2M is for the codomain.

Arguments

x

domain data

y

codomain data

type

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

symCdm

(optional and logical, only for bpn) whether or not symmetrize the codomain structure

diag

(optional and logical) whether or not include the entries in the diagonal matrices

lbs

(optional, only for cn2) tie labels

Author

Antonio Rivero Ostoic

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.

See Also

mlgraph, multigraph

Examples

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