Skip to content

Differences in the n_lags parameter #1423

Discussion options

You must be logged in to vote

Hi @simonsapiel,
The n_lags=24 set in your second example refers to the series itself - it sets the number of auto-regressive terms.

The m.add_lagged_regressor("traffic_amount", n_lags=24) line adds an exogenous variable to be regressed over. Here, n_lags=24 sets the number of lagged observations of this variable to be included in the regression. (If n_lags is not set here, it defaults to same n_lags as set for AR).

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@simonsapiel
Comment options

@ourownstory
Comment options

@simonsapiel
Comment options

Answer selected by ourownstory
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #1422 on September 19, 2023 17:45.