# 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 regression with arma errors # 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, True) # Select explanatory variables SetXVar("RB", "WPAC", "WPAC2", "WPAC3", "WPAC4", "50fin", "100cold", "100fin1", "100fin2", "150fin1", "150fin2", "200fin1", "200fin2", "250fin1", "250fin2", "300fin1", "300fin2", "400fin1", "400fin2", "500fin1", "500fin2", "wnd160.200_0.10", "wnd180.220_-4.4", "wnd180.210_-10.0") # Select component arma, and specify order p=2, q=1 SelectCmp(COM_ARMA, 2, 1) # Estimate model: BFGS_NUM, begin sample, end sample (-1 for end sample) EstimateModel(BFGS_NUM, 1, -1)