is_stable_within: Evaluate within-habitat evolutionary stability

View source: R/is_stable_within.R

is_stable_withinR Documentation

Evaluate within-habitat evolutionary stability

Description

Assesses whether an equilibrium trait value is evolutionarily stable, or invasion-proof.

Usage

is_stable_within(xeq, pars, value = FALSE)

Arguments

xeq

Some equilibrium trait value

pars

An unevaluated parameter-list (e.g. as returned by get_default_pars)

value

Whether to return the actual value of the curvature of the fitness function (defaults to FALSE, i.e. only returns whether this value is negative)

Details

This functions computes an expression for the second derivative of the invasion fitness function with respect to the mutant trait value, evaluated at the resident trait value at equilibrium xeq. If this value is negative then the equilibrium is a fitness maximum, i.e. it is evolutionarily stable. It is unstable otherwise.

Value

A boolean

See Also

is_convergent_within, is_stable

Examples


pars <- get_default_pars()
is_stable_within(0, pars)


rscherrer/speciomx documentation built on March 28, 2023, 8:49 p.m.