Using robust LAR with 'nlinfit' or similar
Show older comments
Hello guys,
I have been playing with 'cftool' to determine the best non linear multiple regression of a data set. My best results are achieved when selecting a robust LAR (Least absolute residuals) regression.
Since I have several data sets, I want to use 'nlinfit' now to do the same thing. However, it seems that I cannot choose a LAR robust regression as the option 'WgtFun' of 'nlinfit' only accepts 'bisquare' (the default), 'andrews', 'cauchy', 'fair', 'huber', 'logistic', 'talwar', or 'welsch'.
Unfortunately, all these options provide worse results than LAR's.
Does anybody knows if it is possible to use LAR in 'nlinfit' (or a similar automatic routine)?
Thank you all,
Xavier
Answers (2)
Shashank Prasanna
on 5 Feb 2013
0 votes
Have you tried generating MATLAB code for you CFTOOL fit?
In CFTOOL, after you perform your fit, click on File -> Generate Code
A MATLAB function will be generated which you can call as many times for your data and will perform the exact same fit you chose on the GUI.
Xavi
on 5 Feb 2013
0 votes
1 Comment
Shashank Prasanna
on 5 Feb 2013
Please reply to 'my answer' rather than in a separate answer box. This helps keeping track of different answers and accepting the right answers that may be useful for the next person who has the same question.
Categories
Find more on Support Vector Machine 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!