OLS in python does multiple linear regression without considering the timestamp. What is the equivalent of TSLM of R in Python, which takes timestamp into consideration.
Asked
Active
Viewed 592 times
2
-
It's just ordinary lm where the time are indices. Tslm is old – Onyambu Jan 03 '22 at 09:33
-
i guess you want this; https://www.statsmodels.org/stable/generated/statsmodels.tsa.tsatools.add_trend.html – Kaoutar Mar 23 '22 at 16:32