Last answered:

26 Aug 2024

Posted on:

25 Aug 2024

0

Making preidctions with the linear regression

from 0:19, it starts to talk about the constant 1.0. I don`t know why we have to write about constant in here.Does it mean by "results = sm.PLS(y,x).fit()", the info of constant is not included that you have to add by "new_data= pd.DataFrame({'const':1,,,   )" or is it because how Pandas DataFrame works?
1 answers ( 0 marked as helpful)
Instructor
Posted on:

26 Aug 2024

0
Hey Osamu,
Thank you for reaching out!
Please refer to the following thread where a similar question is resolved:
Let us know if you need further assistance.
Kind regards,
365 Hristina

Submit an answer