powered by
Mirex concentration, weight, capture year, and species of Lake Ontario Coho and Chinook salmon.
A data frame with 122 observations on the following 4 variables.
a numeric vector of capture years
a numeric vector of salmon weights (kg)
a numeric vector of mirex concentration in the salmon tissue (mg/kg)
a factor with levels chinook and coho
chinook
coho
Linear models
Other
@concept 'Linear Models' Other
The year variable should be converted to a factor as shown in the example.
year
# 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