Command Reference : Command Reference
  
 
auto
Compute serial correlation LM (Lagrange multiplier) test.
Carries out Breusch-Godfrey Lagrange Multiplier (LM) tests for serial correlation in the estimation residuals from the default equation.
Syntax
auto(order, options)
You must specify the order of serial correlation for which you wish to test. You should specify the number of lags in parentheses after the auto keyword, followed by any additional options.
Options
 
prompt
Force the dialog to appear from within a program.
p
Print output from the test.
Examples
To regress OUTPUT on a constant, LABOR, and CAPITAL, and test for serial correlation of up to order four you may use the commands:
ls output c labor capital
auto(4)
The commands:
output(t) c:\result\artest.txt
equation eq1.ls cons c y y(-1)
auto(12, p)
perform a regression of CONS on a constant, Y and lagged Y, and test for serial correlation of up to order twelve. The first line redirects printed tables/text to the “Artest.TXT” file.
Cross-references
See “Serial Correlation LM Test” for further discussion of the Breusch-Godfrey test.
See Equation::auto for the corresponding equation view.