| hb.paramgen | R Documentation |
Generates random implicit environmental parameters h and a interaction matrix J.
Optionally generates explicit environmental coefficients g.
The j_connectivity parameter controls the fraction of non-zero off-diagonal interactions.
hb.paramgen(nn, ne = 0, j_connectivity = 1)
nn |
Integer. Number of units (species, taxa, or members). |
ne |
Integer. Number of environmental factors. If |
j_connectivity |
Numeric in [0, 1]. Fraction of possible pairwise interactions set to non-zero. |
A list containing at least:
Named numeric vector of length nn. Implicit environmental parameters
Named numeric matrix (nn x nn), symmetric. Interaction matrix
If ne > 0, also includes:
Named numeric matrix (nn x ne). Explicit environmental parameters
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.