randomA: Generate random uniform interaction matrix

Description Usage Arguments Note See Also Examples

View source: R/randomA.R

Description

Generate random simplified interaction matrix from a uniform distribution.

Usage

1
randomA(N = 100, d = -0.5, min.strength = -0.5, max.strength = 0.5, c = 0.02)

Arguments

N

number of species

d

diagonal values (should be negative)

min.strength

minimal off-diagonal interaction strength

max.strength

maximal off-diagonal interaction strength

c

connectance (interaction probability)

Note

Simplified version of generateA() function from seqtime package

See Also

seqtime generateA()

Examples

1
2
high_inter_A <- randomA(10, d = -0.4, min.strength = -0.8, max.strength = 0.8, c = 0.5)
low_inter_A <- randomA(10, c = 0.01)

gheysenemma/microsimR documentation built on Dec. 20, 2021, 10:46 a.m.