Builds a random network with a pre-specified correlation structure between off-diagonal elements A_ij and A_ji

build_rho_mat(S, sigma, rho, mn = 0, dval = 1)

Arguments

S

The size of the network (number of components)

sigma

The standard deviation of network interaction strengths

rho

The correlation between component interaction strengths (i.e., between off-diagonal matrix elements A_ij and A_ji

mn

The mean interaction strength

dval

Self-regulation of network elements (1 by default)

Value

A matrix with a pre-specified correlation structure.

Examples

eg_mat <- build_rho_mat(S = 8, sigma = 0.4, rho = 0.2);