It calculates probability of seedling's survival from their trait related to habitat filtering and the local environment.
Gaussian.tolerance(
trait.values,
env,
env.trait = "trait.a",
sigma.a = 0.001,
...
)
Dataframe of all traits
Vector of environmental conditions in the local communities
Name of trait related to environmental tolerance
Tolerance width (same for all species)
Any additional parameters
A matrix of survival probabilities, communities in rows, species/individuals in columns
It assumes that probability of seedling's survival is maximal if the local
environment has the same value as its trait. Survival probability decrease as
environmental value departs from the optimum according to a Gaussian (bell-shaped)
curve. The speed of decrease depends on the tolerance width parameter (sigma.a
).