I have data that is monthly but not labeled. For example:
I also know that time=1 is Jan 1999. Using ym date format, Jan 1999 is month 468 (see code below).
My small problem is the following code throws an error [r(198) invalid syntax].
Any idea on how to fix this?
Thanks in advance.
Code:
clear input firm_id time value 1 1 3 1 2 4 1 3 7 1 4 9 1 5 13 1 6 15 end
Code:
display ym(1999, 1)
Code:
gen month_i=ym(time+467)
Thanks in advance.
Comment