meanDegree.multiplex: Mean degree of layers in the multiplex network

Description Usage Arguments Value References See Also Examples

Description

This function calculates the mean of the degrees on each (intra)layer of the multiplex network. For (intra)layers with directed relationships, the function considers the 'total degree' descriptor.

Usage

1
2
3
meanDegree.multiplex(obj,
                    indexNodeMean = 1:length(nodes.multiplex(obj)),
                    verbose = FALSE)

Arguments

obj

An object of class multiplex.

indexNodeMean

A vector of IDs (or labels) for the selected nodes on which to calculate the mean degree. Default selects all the nodes of the network.

verbose

Default is FALSE. If TRUE, the function prints on console the name of the selected nodes on which the means are evaluated.

Value

A list containing the means of the degrees for each (intra)layer of the multiplex network.

References

Wassermann and Faust (1994), Social network analysis. Cambridge University Press.

See Also

create.multiplex, degree.multiplex

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# Loading Aarhus CS Department dataset.

data(aarhus_mplex)

# Creating the multiplex object using the dataset loaded into aarhus_mplex object.

mplexObj <- create.multiplex(nodes = aarhus_mplex$nodes,
                            layersNames = aarhus_mplex$layerNames,
                            layer1 = aarhus_mplex$L1,
                            type1 = "undirected",
                            aarhus_mplex$L2,
                            aarhus_mplex$L3,
                            aarhus_mplex$L4,
                            aarhus_mplex$L5
                            )

# Calculating the mean degrees on the 5 intralayers of the multiplex network.
# We see, for example, that on average each employee is connected to other 6 collegues
# through "lunch" and "work" relationship, and 0-1 through the "coauthor" relationship.

meanDegree.multiplex(mplexObj)

# Calculating the mean degrees on 10 employees:

meanDegree.multiplex(mplexObj, indexNodeMean = 1:10)

# Using the 'verbose = TRUE' option, the function prints the name of the nodes on which the mean
# degree is performed:

meanDegree.multiplex(mplexObj, indexNodeMean = 1:10, verbose = TRUE)

Achab94/mplex documentation built on May 5, 2019, 11:46 a.m.