fitlm takes first values as an Intercept
2 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Erik Beste
le 7 Juin 2022
Commenté : Star Strider
le 17 Juin 2022
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
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1024060/image.png)
And I used the following code:
Test1=fitlm(DataTest1,'TOTRETEUROLAG ~ 1 + BETA:ID + ESGSC:ID')
But once I look at the results:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1024065/image.png)
It seems that matlab takes my ID 1 as the intercept.
Any idea what I am doing wrong?
Greetings
Erik
0 commentaires
Réponse acceptée
Plus de réponses (0)
Voir également
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!