Fit a generalised linear model that has only constant.

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.

回答 (2 件)

Matt J
Matt J 2013 年 10 月 6 日

0 投票

a=mean(y);
Fio
Fio 2013 年 10 月 6 日

0 投票

Thank you!! I didn't know it was so simple.

この質問は閉じられています。

質問済み:

Fio
2013 年 10 月 6 日

閉鎖済み:

2021 年 8 月 20 日

Community Treasure Hunt

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

Start Hunting!

Translated by