Download the template R markdown file for this workshop.
In this exercise you will:
The MASS
package includes a dataset detailing the death
of snails under experimental conditions. Obtain it using:
data(snails, package="MASS")
str(snails)
Convert the relevant variables into factors.
Choose a sensible model for the data. N.B. Under most experiments, we fit a model that includes all interactions of factors.
What happens if you alter the family to
quasibinomial
?
Let’s remove a significant factor from this model so that we can
see how this impacts on our findings above. Fit both
binomial
and `quasibinomial versions, and compare.
You should compare your work with the solutions for this workshop.