Dear statalist members,
I'm trying to use a date variable that I imported from an excel spreadsheet that is in the format dd/mm/yyyy, as it follows:
As you can see I'm interested only in month and year, but when I tsset it I have the following result:
but I need it to have the delta to be monthly, but when I try to change it to monthly in the tsset it changes all my dates:
Thank you all in advance.
Gustavo
I'm trying to use a date variable that I imported from an excel spreadsheet that is in the format dd/mm/yyyy, as it follows:
| 01/01/1998 |
| 01/02/1998 |
| ... |
| 01/11/2012 |
| 01/12/2012 |
Code:
. tsset inst1 data, daily
panel variable: inst1 (unbalanced)
time variable: data, 01jan1998 to 01apr2012, but with gaps
delta: 1 day
Code:
. tsset inst1 data, month
panel variable: inst1 (unbalanced)
time variable: data, 3116m9 to 3550m5
delta: 1 month
Gustavo

Comment