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)
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