Learn R Programming

glmbb (version 0.5-1)

crabs: Horseshoe Crab Mating Data

Description

Data on horseshoe crabs (Limulus polyphemus). Response is number of males surrounding a breeding female, color (factor), condition (factor), weight (quantitative), and width (quantitative) of the female.

Usage

data(crabs)

Arguments

Format

A data frame with 173 observations on 6 variables. Individuals (rows of the data frame) are female horseshoe crabs. Variables other than satell refer to these females. The variables are

color

color. The colors given in Agresti are “light medium”, “medium”, “dark medium”, and “dark”. Here they are abbreviated to light, medium, dark, and darker, respectively.

spine

spine condition. The conditions given in Agresti are “both good”, “one worn or broken”, and “both worn or broken”. Here they are abbreviated to good, middle, bad, respectively.

width

carapace width in centimeters

satell

number of satellites, which males clustering around the female in addition to the male with which she is breeding.

weight

weight in grams.

y

shorthand for as.numeric(satell > 0).

Details

Quoting from the abstract of Brockmann (1996). “Horseshoe crabs arrive on the beach in pairs and spawn … during … high tides. Unattached males also come to the beach, crowd around the nesting couples and compete with attached males for fertilizations. Satellite males form large groups around some couples while ignoring others, resulting in a nonrandom distribution that cannot be explained by local environmental conditions or habitat selection.”

Examples

Run this code
# NOT RUN {
  data(crabs)
  gout <- glm(satell ~ color + spine + width + weight, family = poisson,
      data = crabs)
# }

Run the code above in your browser using DataLab