Fit a generalised linear model that has only constant.
Info
This question is closed. Reopen it to edit or answer.
Show older comments
Hi!
I have a generalised linear model y_i =a +ε_i, where ε_i are the errors.
Could someone tell me how can I fit this model using the function glmfit? Or using any other way.
Thank you very much.
Answers (2)
Matt J
on 6 Oct 2013
a=mean(y);
This question is closed.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!