Interactive Commands
There is also a set of auxiliary commands which are designed to facilitate interactive use. These commands perform the same operations as equivalent object commands, but do so on newly created, unnamed objects. For example, the command:
ls y c x1 x2
will regress the series Y against a constant term, the series X1 and the series X2, and create a new untitled equation object to hold the results.
Similarly, the command:
scat x y
creates an untitled group object containing the series X and Y and then displays a scatterplot of the data in the two series.
Since these commands are designed primarily for interactive use, they are designed for carrying out simple tasks. Overuse of these interactive tools, or their use in programs, will make it difficult to manage your work since unnamed objects cannot be referenced by name from within a program, cannot be saved to disk, and cannot be deleted except through the graphical Windows interface. In general, we recommend that you use named objects rather than untitled objects for your work. For example, we may replace the first auxiliary command above with the statement:
equation eq1.ls y c x1 x2
to create the named equation object EQ1. This example uses declaration of the object EQ1 and the equation method ls to perform the same task as the auxiliary command above.
Similarly,
group mygroup x y
mygroup.scat
displays the scatterplot of the series in the named group MYGROUP.