Hello Thestylist,

The "time" variable is simply the id of the corresponding observation. For example, the first observation has id 1, the second has id 2, and so on.

The problem is that Python index starts with zero, so I added 1 to the variable, so the first observation is has a time value of 1.

That variable is used for creating a linear regression model, not for statistical tests.

Hope this helps!

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

Vitor Cerqueira
Vitor Cerqueira

Written by Vitor Cerqueira

Ph.D and Researcher on AI and Time Series.

No responses yet

Write a response