General linear model: Model fit

1 vue (au cours des 30 derniers jours)
MiauMiau
MiauMiau le 6 Mai 2018
Commenté : the cyclist le 8 Mai 2018
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)?

Réponses (1)

the cyclist
the cyclist le 6 Mai 2018
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 commentaires
MiauMiau
MiauMiau le 6 Mai 2018
Yes, but as I understand these are the statistics for the coefficients - not for the model overall, right?
the cyclist
the cyclist le 8 Mai 2018
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.

Connectez-vous pour commenter.

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by