Learn R Programming

smbdata (version 0.2.0)

beetles: Beetle mating

Description

The dataset comes from a completely randomized experiment investigating the viability of interspecies and intraspecies mating in two willow beetle species (Phratora vitellinae and Phratora vulgatissima). Females from each species were mated with males of either the same or the other species, giving four treatments with 10 replicates per treatment. The dataset includes the factor Treatment, identifying the mating combination, and the response variable Eggs, which records the number of eggs laid by each female, and is used to compare reproductive outcomes across mating types.

Usage

beetles

Arguments

Format

A data frame with 5 variables: DFemale, Treatment, Species, MateType, Eggs.

DFemale

Factor. Unique identifier for each female subject in the experiment.

Treatment

Factor. Experimental treatment group assigned to each female.

Species

Factor. Species designation for each female in the study.

MateType

Factor. Type of mate provided for each female ("Inter" for interspecific or "Intra" for intraspecific, as relevant).

Eggs

Integer. Number of eggs laid by each female during the observation period.

Examples

Run this code
fit <- lm(log10(Eggs) ~ Species * MateType, data = beetles)
anova(fit)

Run the code above in your browser using DataLab