Session Ready
Exercise

Modeling running times

In this exercise, you'll build three different models based on the data Runners, which is already in your workspace. The data come from records of the Cherry Blossom Ten Mile Run, a foot race held in Washington, DC each spring.

Imagine that you have been assigned the task of constructing a handicap for the runners, so that different runners can compare their times adjusting for their age and/or sex.

You will construct three different models using the linear model architecture. Each will have the "net" running time as a response and age and/or sex as explanatory variables. After you build the models, you can visualize them as a graph using simple commands that have been provided to you in the editor.

Instructions
100 XP
  • Find the names of the variables in Runners
  • Using the linear model architecture, create a model of net running time as a function of
  • age: handicap_model_1
  • sex: handicap_model_2
  • both age and sex: handicap_model_3
  • You can look at a graph of each model using the fmodel() commands provided for this purpose.