Parameter estimation nlinfit vs. fitnlm
13 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Nath
le 25 Mai 2014
Modifié(e) : Ho Nam Ernest Yim
le 3 Avr 2018
Hi
I want to fit a nonlinear model using nonlinear regression function nlinfit or fitnlm.Is there a difference? which one is more robust for a difficult kinetic model?
It seems both use Levenberg-Marquardt algorithm ?
Thank You,
0 commentaires
Réponse acceptée
Star Strider
le 26 Mai 2014
There is no real difference. Both nlinfit and fitnlm are Statistics Toolbox functions for nonlinear regression, and so use the same fundamental functions. The fitnlm function is a shell around nlinfit and its friends. The advantage to fitnlm is that it’s slightly easier to use, and delivers a few more statistics. The important results — parameter confidence intervals and confidence intervals on the fitted equation — are easy to get with either, but actually slightly easier with nlinfit, nlparci and nlpredci.
Experiment with both, and see which is most appropriate to your application.
Don’t neglect lsqcurvefit if you have access to it (Optimization Toolbox). It can do two things that the Statistics Toolbox functions cannot: (1) accept bounds on the parameters, and (2) fit matrix dependent variables. It doesn’t have access to all the statistics the Statistics Toolbox functions do, but it definitely has its uses.
7 commentaires
Ho Nam Ernest Yim
le 3 Avr 2018
Modifié(e) : Ho Nam Ernest Yim
le 3 Avr 2018
Hi, can I know other than lsqcurvefit (same as lsqnonlin ?) and nlinfit. Are there any other suggestions on fitting a nonlinear data ? Mainly, I would like to compare how well different methods could do. Many Thanks
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Systems of Nonlinear Equations dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!