Skip to content

AutoArima error in gretl #3

Open

Description

@srk7774

I am trying to replicate the results in the textbook fpp3. https://otexts.com/fpp3/arima-ets.html.

I am getting the following error.

Info: Will estimate SARIMAX type of models.
In regard to function arima_estimation_get_info_crits (package auto_arima):
Warning: norm of gradient = 1.73203
$model: no data available
*** error within loop in function arima_estimation_get_info_crits

criteria_values[i] = aicc($model)
called by function estimate_models
*** error within loop in function estimate_models
self.criteria_values[i,] = arima_estimation_get_info_crits(y, xlist, self, $i)
called by function auto_arima
*** error in function auto_arima, line 32
estimate_models(&self)
called by function auto_arima_gui

Image

aus_production_cement.csv

Activity

  1. atecon commented on Mar 2, 2026

    @atecon
    Owner

    Thanks for the report, @srk7774 . I can confirm the error.

    Quick solution: If you tick the box "Print details" at the bottom, you get an output.

    In the text book they use as the optimal model: > Model: ARIMA(1,0,1)(2,1,1)[4] w/ drift

    However, given your parameter choices, the auto_arima procedure selects d=1 for getting rid of the likely trend-component in the time-series.

    By the way, much of the things auto_arima does, is now natively implemented in gretl:

    set verbose off
    
    #open aus_production_cement.gdt
    
    # Set Auto-ARIMA parameters
    scalar p_max = 2
    scalar d = 1   # is fixed
    scalar q_max = 1
    scalar P_max = 2
    scalar D = 1   # is fixed
    scalar Q_max = 1
    
    # Execute
    arima p_max d q_max ; P_max D Q_max ; Cement --lagselect
    
  2. srk7774 commented on Mar 3, 2026

    @srk7774
    Author

    Thanks for your clarification. Can you provide another option without parameter selection manually and implement autoarima like in fpp3 book based on Hyndman-Khandakar algorithm (Hyndman & Khandakar, 2008)? You can internally optimize the parameters but provide an output rather than some error which is difficult to interpret. I prefer the menu version.

  3. atecon commented on Mar 3, 2026

    @atecon
    Owner

    Can you provide another option without parameter selection manually and implement autoarima like in fpp3 book based on Hyndman-Khandakar algorithm (Hyndman & Khandakar, 2008)?

    You can internally optimize the parameters but provide an output rather than some error which is difficult to interpret. I prefer the menu version.

    Please submit a feature request (with links to examples if possible) here as a reminder. However, I don't have the capacity to work on this package right now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions