How to get the sum of squares in GLM model summary ?
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
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 Kommentare
Akzeptierte Antwort
Ive J
am 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
3 Kommentare
Ive J
am 8 Apr. 2022
You cannot use anova on a GLM, but only an LM. The link you provided is the same. I assume your response is continuous, so you can use fitlm. Also, it's easier if you share your data.
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu ANOVA finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!