The goal of GREMLINS is to perform statistical analysis of multipartite networks through a block model approach.

Multipartite networks consist in the joint observation of several networks implying some common individuals. The individuals (or entities represented by nodes) at stake are partitioned into groups defined by their nature. In what follows, these groups will be referred to as .

You can install the released version of GREMLINS GitHub with:

#devtools::install_github("Demiperimetre/GREMLINS") library(GREMLINS)

Assume that *Q* functional groups of individuals are at stake; Let *n*_{q} be the number of individuals in the *q*-th functional group.

A multipartite network is a collection of networks: each network may be simple (relations inside a functional group) or bipartite (relations between individuals of two functional groups). We index the collection of networks by pairs of functional groups (*q*, *q*′).

The set *E* denotes the list of pairs of functional groups for which we observe an interaction network.

For any pair (*q*, *q*′) ∈ *E*, the interaction network is encoded in a matrix *X*^{qq′} : $X^{qq’}_{ii’} 0 $ if there is an edge from unit *i* of functional group *q* to unit *i*′ of functional group *q*′, 0 otherwise. - If *q* ≠ *q*′, *X*^{qq′} is said to be an . - *X*^{qq} is an : it is symmetric if the relation inside the functional group *q* is non-oriented, non-symmetric otherwise.

Assume that, each functional group *q* is divided into *K*_{q} blocks (or equivalently clusters). ∀*q* ∈ {1, …, *Q*} and $ i {1,,n_q}$, let *Z*_{i}^{q} be the latent random variable such that *Z*_{i}^{q} = *k* if individual *i* of functional group *q* belongs to cluster *k*. The random variables *Z*_{i}^{q}’s are assumed to be independent and such that: ∀*k* ∈ {1, …, *K*_{q}}, ∀*q* ∈ {1, …, *Q*}, ∀*i* ∈ {1, …, *n*_{q}}:

with $\sum_{k=1}^{K_q}\pi^{q}_k=1$, ∀*q* ∈ {1, …, *Q*}. Let $\bZ = \left(Z^{q}_i\right)_{i\in \{1,\ldots,n_q\}, q \in \{1,\ldots,Q\}}$ denote the set of latent variables.