Download the template R markdown file for this workshop.

Practical Exercise: The second Beetles exercise

This exercise is useful for the following courses:

Aims of this practical exercise

In this exercise you will:

  • fit a variety of models to the Beetles data involving a variety of link functions.

Get the data

data(Beetles, package="ELMER")
Beetles = Beetles |> mutate(NoLiving = NoBeetles - NoKilled) |> glimpse()
Rows: 8
Columns: 6
$ Dose      <dbl> 1.6907, 1.7242, 1.7552, 1.7842, 1.8113, 1.8369, 1.8610, 1.88…
$ NoBeetles <int> 59, 60, 62, 56, 63, 59, 62, 60
$ NoKilled  <int> 6, 13, 18, 28, 52, 53, 61, 60
$ Prop      <dbl> 0.1016949, 0.2166667, 0.2903226, 0.5000000, 0.8253968, 0.898…
$ TProp     <dbl> 0.3245649, 0.4841708, 0.5690309, 0.7853982, 1.1397128, 1.246…
$ NoLiving  <int> 53, 47, 44, 28, 11, 6, 1, 0

The Exercise

Revisit the Beetle mortality data. Investigate the predictions that arise through use of different link functions.

Solutions

You should compare your work with the solutions for this workshop.