How to choose the right model for Non-linear regression?
5 views (last 30 days)
Show older comments
Selim Sheta on 22 Aug 2020
Answered: Ayush Gupta on 26 Aug 2020
Hi, I'm trying to use fitnlm to create a model from 7 predictor variables and 1 response variable. If I understand correctly, I need to use something like
mdl = fitnlm(predictors,responses,@modelfun,beta0).
I'm struggling to find which model (@modelfun) is appropriate for my data. how do I see which pre-built models are available? Is there a list of them somewhere?
Adam Danz on 23 Aug 2020
Edited: Adam Danz on 23 Aug 2020
This answer by the talented John D'Errico walks you through his process of assessing the underlying function of noisy data, although the function in that answer is different from yours.
The curve fitting toolbox may also come in handy while exploring different functions.
Just be cautious of overfitting (as Image Analyst mentioned) and correlated predictors (multicollinearity).
These two pages in Matlab's Documentation may be helpful as well,
Ayush Gupta on 26 Aug 2020
Find more on Nonlinear Regression in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!