Last answered:

10 Apr 2023

Posted on:

08 Apr 2023

0

What does the add_constant method does?

Please explain how x = sm.add_constant(x1) work?

And why does during fitting, the variables x and y is only considered and not x? 

The variable x has only constant values right? 

1 answers ( 0 marked as helpful)
Instructor
Posted on:

10 Apr 2023

1

Hey Deepak,


Thank you for reaching out!


Please, refer to the following thread for an answer to your question:

https://365datascience.com/q/35a9162e2b


Kind regards,

365 Hristina

Submit an answer