Hello,
I would like to create a date variable that represent successive two month intervals - e.g., date = Jan/Feb 2011, March/April 2011, etc. I know that I can use the "qofd" command to generate quarters, but I do not see if/how that code could be modified to create two month intervals. My data are currently in month/year format.

thank you,
Christina


Code:
* Example generated by -dataex-. To install: ssc install dataex
clear
input float moyear
612
612
612
612
613
613
613
613
614
614
614
614
615
615
615
615
616
616
616
616
617
617
617
617
618
618
618
618
619
619
619
619
620
620
620
620
621
621
621
621
622
622
622
622
623
623
623
623
624
624
624
624
625
625
625
625
626
626
626
626
627
627
627
627
628
628
628
628
629
629
629
629
630
630
630
630
631
631
631
631
632
632
632
632
633
633
633
633
634
634
634
634
635
635
635
635
636
636
636
636
end
format %tm moyear
------------------ copy up to and including the previous line ------------------