What formula for r-squared does fitlm use in the weighted linear regression case?
Show older comments
If I use fitlm as:
mdl = fitlm(X,Y,'Weights',W);
can someone tell me the formula used in computing the r-squared that's here:
mdl.Rsquared.Ordinary
I am seeing a different result when compared to JMP. Thanks.
Answers (1)
Matt J
on 7 Feb 2024
0 votes
It is as described here,
Categories
Find more on Resampling Techniques in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!