[ Home | GAUSS | GAUSS Engine | GAUSS Apps | 3rd Party Apps | Keywords Index ]

Defining the Dataset

Initializing the Session
Next ->: The Dependent Variable

Next, the dataset is established. Only the name of the dataset is needed if it is stored in a GAUSS dataset:

    setDataSet amzn;

The dataset may also be stored in an ASCII or flat file. If that is so, the names of all the variables must also be included:

     setVarNames date price;
     setDataSet msft;

When the input data is stored in an ASCII file, setDataSet creates a GAUSS dataset with the data in it. Subsequent references to this dataset can be to the GAUSS dataset rather than to the original ASCII file.

If the GAUSS dataset contains a "date" variable, it must be in the standard form, yyyymmdd.

If the list of variable names for the ASCII data file contains a "date" label, and if the corresponding column in the ASCII file is in one of the common formats, mm/dd/yy or mm/dd/yyyy, it will be transformed into the standard format yyyymmdd before being added to the newly created GAUSS data set.

Occasionally financial data in ASCII file format will have the data sorted in the reverse order to that required by FANPAC, i.e, with the latest date at the top instead of the bottom. When the GAUSS dataset is created, the data will be sorted into the order required by FANPAC.



R. Schoenberg
1999-03-29