How do I find the errors for fitting parameters in lsqnonlin
5 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
How do I get fitting parameters along with their errors when using lsqnonlin for my fittings? What I mean is that I want parameters' errors after fitting.
Thanks in advance
0 commentaires
Réponses (1)
Star Strider
le 3 Août 2012
Modifié(e) : Star Strider
le 3 Août 2012
If you have the Statistics Toolbox, see ‘nlparci’. If you don't, then I refer you to http://www.bsos.umd.edu/socy/alan/stats/socy602_handouts/kut86916_ch13.pdf, specifically to Equations 13.31 and 13.32. Those allow you to calculate the variance-covariance matrix for the parameters. From those you can calculate the standard errors, and from there the conficence intervals. The ‘D’ matrix in Equation 13.32b is the Jacobian. You want to end up with a square matrix of size [P x P] where P is the number of your parameters, so you may have to experiment a bit.
0 commentaires
Voir également
Catégories
En savoir plus sur Linear and Nonlinear Regression 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!