Non-Linear Regression in R
Last Updated on August 15, 2020
In this post you will discover 4 recipes for non-linear regression in R.
There are many advanced methods you can use for non-linear regression, and these recipes are but a sample of the methods you could use.
Kick-start your project with my new book Machine Learning Mastery With R, including step-by-step tutorials and the R source code files for all examples.
Let’s get started.
Each example in this post uses the longley dataset provided in the datasets package that comes with R. The longley dataset describes 7 economic variables observed from 1947 to 1962 used to predict the number of people employed yearly.
Multivariate Adaptive Regression Splines
Multivariate Adaptive Regression Splines (MARS) is a non-parametric regression method that models multiple nonlinearities in data using hinge functions (functions with a kink in them).