How do I find the errors for fitting parameters in lsqnonlin
12 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
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 comentarios
Respuestas (1)
Star Strider
el 3 de Ag. de 2012
Editada: Star Strider
el 3 de Ag. de 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 comentarios
Ver también
Categorías
Más información sobre Linear and Nonlinear Regression en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!