Hi,
The dataset that I am using has a 'month' variable in the format of '201507' to '201912'.
I would like to create a time series data set so that I have a 'time' variable that starts with 201506 = 1 up to 201912 = 54.
I tried
but got an error that there are repeated values.
I think the other solution would be looping but I do not know how to formulate the codes for this.
It would be great if I could get advice on this.
Thank you very much!
The dataset that I am using has a 'month' variable in the format of '201507' to '201912'.
I would like to create a time series data set so that I have a 'time' variable that starts with 201506 = 1 up to 201912 = 54.
I tried
Code:
tsset month
I think the other solution would be looping but I do not know how to formulate the codes for this.
It would be great if I could get advice on this.
Thank you very much!
Comment