compute_Bateman: Compute the Bateman gradient

Description Usage Arguments Value References See Also Examples

View source: R/bateman.R

Description

This function computes the Bateman gradient. The Bateman gradient is the slope of the regression line of the reproductive success on the mating success. Following Jones 2009 (and unlike some other work), we consider the relative reproductive success and the relative mating success to compute the gradient; i.e. we divide each variable by the population mean before fitting the linear model.

Usage

1
compute_Bateman(mating_success, reproductive_success)

Arguments

mating_success

A vector of mating success outcomes.

reproductive_success

A vector of reproductive success outcomes.

Value

The Bateman gradient.

References

Jones A.G (2009).On the opportunity for sexual selection, the Bateman gradient and the maximum intensity of sexual selection. Evolution, 63(7), 1673-1684.

See Also

test_NonacsB

Examples

1
2
compute_Bateman(mating_success = males$Mat_succ,
                reproductive_success = males$Rep_succ)

courtiol/matingRhinos documentation built on Nov. 22, 2019, 11:10 p.m.