How to get the sum of squares in GLM model summary ?
조회 수: 9 (최근 30일)
이전 댓글 표시
채택된 답변
Ive J
2022년 4월 6일
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
Ive J
2022년 4월 8일
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.
추가 답변 (0개)
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!