simulateParam: Simulate parameters for community simulation

Description Usage Arguments Value Examples

View source: R/simulateParam.R

Description

Simulate intrinsic growth rate of species in the community, and their interaction intensity. Interaction intensity are mostly negative to reflect the competitive nature in the community, and values are drawn from a uniform distribution.

Usage

1

Arguments

N

Number of members in the community.

Value

A list of parameters for community simulation. N is the input. alpha is the intrinsic growth rate. c0[i,j] is the pairwise interaction intensity from species j to species i. ck is a list of length N, each matrix k being the higher order impact from species j onto the pairwise interaction of i and k, felt by k.

Examples

1
2
re <- simulateParam(5)
alpha <- re$alpha

yuan-yin-truly/CommunitySim documentation built on Jan. 21, 2022, 9:11 p.m.