Month of the year of the observation.
Syntax: @month
Return: series
Returns the month of the year (1–12) associated with each observation in the workfile.
• If the workfile is of lower than monthly frequency, all observations will be set to 1.
• If the workfile is undated, observations will be set to -1.
Examples
series dt = @month
saves the month into the series DT.
The command
smpl if @month=12 or @month=1
sets the sample to only include observations in December and January.
Cross-references