How can I obtain the regression statistics for weighted least squares regression in MATLAB?

2 views (last 30 days)
I am performing weighted least squares regression using "lscov", and want the function to return the diagnostic statistics in the output. These statistics are available in "regstats", but "regstats" does not do weighted regression.

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 18 Oct 2013
The ability to retrieve diagnostic statistics for weighted least squares regression in "lscov" is not available in MATLAB.
In the Statistics and Machine Learning Toolbox, these statistics are available by using the "fitlm", "fitglm", and "fitnlm" functions.

More Answers (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!