Learn R Programming

EnTraineR (version 1.0.0)

poussin: Poussin: weight by brooding temperature and sex

Description

Chick weights measured under three brooding temperatures, with sex recorded. Useful for ANOVA and linear models with categorical factors.

Usage

data(poussin)

Arguments

Format

A data frame with 45 rows and 3 variables:

Temperature

factor with 3 levels: "T1", "T2", "T3" (15 each).

Gender

factor with 2 levels: "Female", "Male" (about 20 and 25).

Weight

numeric; weight (units as provided).

Details

Brief summary (indicative): Weight min ~ 15, median ~ 23, max ~ 33.

Examples

Run this code
data(poussin)
with(poussin, table(Temperature, Gender))
boxplot(Weight ~ Temperature, data = poussin,
        main = "Poussin weight by temperature")
# Two-factor ANOVA (base stats):
fit <- stats::aov(Weight ~ Temperature * Gender, data = poussin)
summary(fit)

Run the code above in your browser using DataLab