twostarL-ergmTerm-57211220: Multilayer two-star

twostarL-ergmTermR Documentation

Multilayer two-star

Description

This term adds one statistic to the model, equal to the number of cross-layer two-stars or two-paths in the network.

Usage

# binary: twostarL(Ls, type, distinct=TRUE)

Arguments

Ls

a list (constructed by list() or c() of two Layer Logic specifications (c.f. Layer Logic section in the Layer() documentation) specifying the layers of interest.

type

determines what is counted:

  1. "any" Number of configurations (i-j), (i-k) , where (i-j) is in logical layer Ls[[1]] and (i-k) is in logical layer Ls[[2]] .

  2. "out" Number of configurations (i{\rightarrow}j), (i{\rightarrow}k), where (i{\rightarrow}j) is in logical layer Ls[[1]] and (i{\rightarrow}k) is in logical layer Ls[[2]].

  3. "in" Number of configurations (j{\rightarrow}i), (k{\rightarrow}i), where (j{\rightarrow}i) is in logical layer Ls[[1]] and (k{\rightarrow}i) is in logical layer Ls[[2]].

  4. "path" Number of configurations (j{\rightarrow}i), (i{\rightarrow}k), where (j{\rightarrow}i) is in logical layer Ls[[1]] and (i{\rightarrow}k) is in logical layer Ls[[2]].

At this time, "any" is only supported for undirected networks, and if the network is undirected, type is ignored and "any" is assumed.

distinct

if TRUE, j and k above are required to be distinct. That is, the constituent edges may not be coincident or reciprocal.

See Also

ergmTerm for index of model terms currently visible to the package.

\Sexpr[results=rd,stage=render]{ergm:::.formatTermKeywords("ergmTerm", "twostarL", "subsection")}

ergm.multi documentation built on May 29, 2024, 11:07 a.m.