Learn R Programming

smbdata (version 0.2.0)

prey: Ladybird predation

Description

This dataset comes from an experiment investigating factors affecting predation by the Harlequin ladybird. Individual ladybirds of known sex (Sex: Female, Male) were introduced into Petri dishes, each containing six prey items—either pea aphids or lacewing larvae (Prey: Aphid, Lacewing). The experiment followed a randomized complete block design with four treatment combinations arranged across 15 rows (blocks), resulting in 60 observations. On each occasion, one ladybird was observed for the number of prey (Eaten) consumed in 60 minutes. Rows 1–15 combine replicates from both multiple occasions and multiple blocks, enabling the analysis of treatment effects while accounting for replicate variation. The data allow for examination of the influence of ladybird sex and prey type on short-term predation rates, with the outcome variable assumed to follow a Binomial distribution.

Usage

prey

Arguments

Format

A data frame with 7 variables: ID, Row, Dish, Sex, Prey, Eaten, Total.

ID

Factor. Unique identifier for each observation (Petri dish).

Row

Factor. Block or replicate identifier (1 to 15), combining experimental occasions and spatial replicates.

Dish

Factor. Dish number within each row/block (1 to 4, one for each treatment combination).

Sex

Factor. Sex of the Harlequin ladybird ("Female" or "Male") in the dish.

Prey

Factor. Prey type offered: "Aphid" or "Lacewing".

Eaten

Integer. Number of prey consumed by the ladybird in 60 minutes.

Total

Integer. Total number of prey items offered in the dish (always 6).

Examples

Run this code
glm(cbind(Eaten, Total) ~ Row + Sex * Prey, family = binomial(), data = prey)

Run the code above in your browser using DataLab