using nlparci with weighted error function
1 次查看(过去 30 天)
显示 更早的评论
Hello.
I have the same problem than: https://fr.mathworks.com/matlabcentral/answers/265273-how-to-correctly-use-lsqnonlin-in-conjunction-with-nlparci-and-nlpredci-by-fitting-to-a-weighted-fu
As this post is really old and not really answered,I ask the question again.
How to calculate parameters confidence interval with for exemple nlparci when the function is weighted. In general case one can write the error to minimize as:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/289673/image.png)
w is the wheight, y the data, f(x) the function to approximate the data.
In my case I use a relative error:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/289674/image.png)
I used the lsqnonlin function and fitted during 5 days since my function is slow and since I have 7 parameters. I recorded the output of lsqnonlin
0 个评论
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Linear and Nonlinear Regression 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!