Seasonal dummy variable.
Syntax: @seas(x)
x: integer
Return: series
Returns the seasonal dummy variable series in a quarterly or monthly workfile, indicating whether the date in the workfile of each observation matches the seasonal value specified in x.
Examples
workfile m 2020 2022
series m2 = @seas(2)
creates a dummy variable series with February observations (seasonal 2) equal to 1.
workfile q 2020 2021
smpl if @seas(2) = 1
creates a quarterly workfile, then sets the sample to include only observations in the second quarter.
Cross-references