I have a timeseries dataset holding stock data for a large set of companies. Assume the following subset, where obsDay is the observation day (148 days in reality) and weekDay the day of the week (1 = monday, 2 = tuesday, ...):
company sector obsDay weekDay stockPrice
-------------------------------------------
1 15 1 3 10.40
1 15 2 4 9.42
1 15 3 5 9.66
1 15 4 1 11.00
1 15 5 2 10.21
2 10 1 3 43.55
2 10 2 4 43.50
2 10 3 5 40.31
2 10 4 1 48.43
2 10 5 2 43.00
3 20 1 3 10.00
3 20 2 4 11.00
3 20 3 5 12.00
3 20 4 1 13.00
3 20 5 2 14.00
In an OLS regression, I would like to see the effect, for instance, of day of the week and industry sector, on stockprice. It is suggested that I would then have to make dummies for each variable, as follows (for sector):
company sector sector15 sector10 sector20 obsDay weekDay stockPrice
------------------------------------------------------------------------
1 15 1 0 0 1 3 10.40
1 15 1 0 0 2 4 9.42
(and the same for weekDay). But with the many variables I have, this is making the dataset hard to read. Can't SPSS create dummy variables from the sector and weekDay categories on the fly when performing the OLS?