Learn R Programming

FSA (version 0.8.20)

Mirex: Mirex concentration, weight, capture year, and species of Lake Ontario salmon.

Description

Mirex concentration, weight, capture year, and species of Lake Ontario Coho and Chinook salmon.

Arguments

Format

A data frame with 122 observations on the following 4 variables.

year

a numeric vector of capture years

weight

a numeric vector of salmon weights (kg)

mirex

a numeric vector of mirex concentration in the salmon tissue (mg/kg)

species

a factor with levels chinook and coho

Topic(s)

  • Linear models

  • Other

@concept 'Linear Models' Other

Details

The year variable should be converted to a factor as shown in the example.

Examples

Run this code
# NOT RUN {
data(Mirex)
Mirex$year <- factor(Mirex$year)
lm1 <- lm(mirex~weight*year*species,data=Mirex)
anova(lm1)

# }

Run the code above in your browser using DataLab