How to get the sum of squares in GLM model summary ?
16 views (last 30 days)
Show older comments
I want to calculate the % of variance explained by each variable in a GLM, for that I need the summ of square. Can we get it from the fitglm function output ?
0 Comments
Accepted Answer
Ive J
on 6 Apr 2022
You can get SST, SSE and SSR:
mdl = fitglm(rand(100, 2), randi([0 1], 100, 1), 'dist', 'binomial', 'link', 'logit');
mdl.SSE
mdl.SSR
mdl.SST
More Answers (0)
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!