# Enter batch code below # Everything after "#" is ignored by the interpreter # Each line can only hold one function # Example Batch programs can be found in the "Batch programs" folder of the installation directory # During a Batch run, text output is presented on the Text Output page and not on the Batch page ############################################ # Example batch program for Case Study El Nino # Load data, specify path LoadData(".\data\elnino.csv") # Specify name of the dependent variable SetYVar("EN3.4") # Remove all model selections SelectCmp() # Select component level and set to fixed = (True/False) SelectCmp(COM_LVL, False) # Select component seasonal and set to fixed=(True/False), seasonal period, number of factors SelectCmp(COM_SEAS, False, 12, 6) # Select component cycle SelectCmp(COM_CYC) SelectCmp(COM_CYC2) # Set starting value of cycle period but do not fix the parameter SetParByName("Cycle 1 period", False, 18.0) SetParByName("Cycle 2 period", False, 51.0) # Estimate model: BFGS_NUM, begin sample, end sample (-1 for end sample) EstimateModel(BFGS_NUM, 1, 324)