Display residuals.
The resids command allows you to display the actual, fitted values and residuals in either tabular or graphical form.
Syntax
equation_name.resids(options)
Options
g (default) | Display graph of actual/fittted/residuals (with one standard error bands) |
n | Display graph of residuals only (with one standard error bands) |
t | Display table of actual/fitted/residuals. |
s | Display graph of standardized residuals. |
p | Print the table/graph. |
Examples
equation eq1.ls m1 c inc tb3 ar(1)
eq1.resids
regresses M1 on a constant, INC, and TB3, correcting for first order serial correlation, and displays a table of actual, fitted, and residual series.
eq1.resids(g)
displays a graph of the actual, fitted, and residual series.
Cross-references