O'Reilly logo

Mastering Scientific Computing with R by Radia M. Johnson, Paul Gerrard

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

Extending the linear framework

As discussed in the previous chapter, the basic idea underlying linear regression is that some variables' values can be predicted by the following equation describing a line:

Extending the linear framework

Here, the dependent variable Y has a linear relationship with a set of X values (that is, X values that are all raised to the power of 1). Of course, the various X values themselves can be nonlinear functions of other predictor variables; thus, by performing linear regression on nonlinear transformations of predictor variables we will be able to model nonlinear relationships in between variables.

Polynomial regression

The simplest way to extend the ...

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