Learn R Programming

abd (version 0.1-22)

SexualSelection: Sexual Conflict

Description

Number of species in each of two taxa in closely related taxon pairings and the difference between the two groups. One taxon has multiple matings (polyandrous.species) and one has only single matings (monandrous.species).

Usage

data(SexualSelection)

Arguments

source

Arnqvist, G., M. Edvardsson, U. Friberg, and T. Nilsson. 2000. Sexual conflict promotes speciation in insects. Proceedings of the National Academy of Sciences (USA) 97: 10460-10464.

References

http://www.egs.uu.se/evbiol/Persons/Urban/1.pdf

Examples

Run this code
data(SexualSelection)
SexualSelection

histogram(~ difference, SexualSelection, n = 20)

hist(SexualSelection$difference, breaks = 20)

# Calculate the number of tests and the number of negative tests
(n <- length(SexualSelection$difference))
(n.neg <- sum(SexualSelection$difference < 0))

2 * pbinom(q = n.neg, size = n, prob = 0.5)

# With a binomial test
binom.test(n.neg, n, p = 0.5)

Run the code above in your browser using DataLab