Demo Weighted Nonlinear Regression (Statistics Toolbox)
이전 댓글 표시
In the Statistics toolbox Demo "Weighted Nonlinear Regression" the weights are normilized w = w / mean(w), but when applied to the data the square root of the normilized weights are used modelFunw = @(b,x) sqrt(w).*modelFun(b,x);
Why use the sqrt(w) and not just w? Should you always use sqrt(w)? The demo provided no explantion as to why sqrt(w) was used. Can someone provide an explantion?
I'm trying to apply this to the heavly weighted NHANES database.
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Statistics and Machine Learning Toolbox에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!