Practical Computing Exercise for Week 4 :The first Leukemia exercise

Download the template R markdown file for this workshop.

Aims of this practical exercise

In this exercise you will:

  • rework the example given in ELMER
  • get some practice using R markdown
  • fit a variety of models to the Leukemia data involving a variety of transformations.

Before you undertake this exercise…

You need to have installed R, RStudio, and the necessary packages for the course, including the ELMER package. See how to get set up for this course

Get the data

data(Leukemia, package="ELMER")
str(Leukemia)
'data.frame':   17 obs. of  2 variables:
 $ Time : int  65 156 100 134 16 108 121 4 39 143 ...
 $ Count: num  3.36 2.88 3.63 3.41 3.78 4.02 4 4.23 3.73 3.85 ...

The exercise

Re-create the figure and table given in the Leukemia data example in Chapter 3 of ELMER, which show the fitted values for the unweighted and weighted models.

Solutions

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