O'Reilly logo

R for Data Science by Dan Toomey

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 4. Data Analysis – Regression Analysis

Regression analysis is one of the first tools used when analyzing your dataset. It involves estimating the relationship between variables, and often it will give you an immediate insight into the organization of your data.

In this chapter, we will look at tools available in R for regression analysis:

  • Simple regression
  • Multiple regression
  • Multivariate regression
  • Robust regression

Packages

In R, there are several packages available that provide the programmer with the regression functionality. We will be using the following packages in the examples:

  • chemometrics: This package has tools to analyze chemometric data (multivariate)
  • MASS: This package offers modern applied statistics with S

Simple regression

In simple ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required