필터 지우기
필터 지우기

General linear model: Model fit

조회 수: 2 (최근 30일)
MiauMiau
MiauMiau 2018년 5월 6일
댓글: the cyclist 2018년 5월 8일
Hi
I am using Matlab's GLM function:
[b,dev,stats] = glmfit(...)
Where can I get an output of the overall model fit (something like an omnibus test)?

답변 (1개)

the cyclist
the cyclist 2018년 5월 6일
Have you looked through the documentation for glmfit? It describes all the output in detail. In particular, the stats output is a structure that contains information about the fit (e.g. t-statistics and p-values for the fit coefficients).
  댓글 수: 2
MiauMiau
MiauMiau 2018년 5월 6일
Yes, but as I understand these are the statistics for the coefficients - not for the model overall, right?
the cyclist
the cyclist 2018년 5월 8일
That's true. I think if you use fitglm instead of glmfit (yeah, I know), it reports the model-level stats that you are looking for. Take a look at the methods for the model object (denoted mdl) that is the output from fitglm, as well as the first couple examples on that documentation page.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Regression에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by