Skip to main content

Introduction to Data Science Version 3

Chapter 17 Line Up, Please

Data users are often interested in questions about relationships and prediction. For example, those interested in athletics might want to know how the size of the fan base of a team is connected with attendance on game day. In this chapter, our Australian colleague, Robert de Graaf, introduces the techniques of linear regression, a very important data science tool.

Sources.

  1. abline() - plots a best fitting line on top of a scatterplot
  2. attach() - makes a data structure the "focus" of attention
  3. getwd() - show the current working directory for R
  4. ifelse() - a conditional test that provides one of two possible outputs
  5. lm() - "linear models" and for this chapter, multiple regression
  6. plot() - general purpose graphing function, many uses in R