필터 지우기
필터 지우기

fitlm takes first values as an Intercept

조회 수: 2 (최근 30일)
Erik Beste
Erik Beste 2022년 6월 7일
댓글: Star Strider 2022년 6월 17일
Hello Matlab Community,
I have a question regarding fitlm which is probably quite stupid but anyway.
I have the data of 28 companies and I am trying to do a panel data Regression therefore I am using fitlm:
My data looks like this
And I used the following code:
Test1=fitlm(DataTest1,'TOTRETEUROLAG ~ 1 + BETA:ID + ESGSC:ID')
But once I look at the results:
It seems that matlab takes my ID 1 as the intercept.
Any idea what I am doing wrong?
Greetings
Erik

채택된 답변

Erik Beste
Erik Beste 2022년 6월 17일
So it seems like that one of the IDs is taken as a reference value!
  댓글 수: 1
Star Strider
Star Strider 2022년 6월 17일
What precisely does that mean?
What is it actually doing?

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

추가 답변 (0개)

Community Treasure Hunt

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

Start Hunting!

Translated by