gen newt = td(15mar1993) + t - 1
tsset newt, daily
Similarly can we create time series for 30 minutes interval data. Please suggest the Stata code.
My time variable is like this
6/3/2018 17:00 |
6/3/2018 17:30 |
6/3/2018 18:00 |
6/3/2018 18:30 |
6/3/2018 19:00 |
6/3/2018 19:30 |
6/3/2018 20:00 |
6/3/2018 20:30 |
6/3/2018 21:00 |
6/3/2018 21:30 |
6/3/2018 22:00 |
6/3/2018 22:30 |
6/4/2018 0:30 |
6/4/2018 1:00 |
6/4/2018 1:30 |
6/4/2018 2:00 |
6/4/2018 2:30 |
6/4/2018 3:00 |
6/4/2018 3:30 |
6/4/2018 4:00 |
6/4/2018 4:30 |
6/4/2018 5:00 |
6/4/2018 5:30 |
6/4/2018 6:00 |
6/4/2018 6:30 |
6/4/2018 7:00 |
6/4/2018 7:30 |
6/4/2018 8:00 |
6/4/2018 8:30 |
6/4/2018 9:00 |
6/4/2018 9:30 |
6/4/2018 10:00 |
6/4/2018 10:30 |
6/4/2018 11:00 |
6/4/2018 11:30 |
6/4/2018 12:00 |
6/4/2018 12:30 |
6/4/2018 13:00 |
6/4/2018 13:30 |
6/4/2018 14:00 |
6/4/2018 14:30 |
6/4/2018 15:00 |
6/4/2018 15:30 |
6/4/2018 16:00 |
6/4/2018 16:30 |
6/4/2018 17:00 |
6/4/2018 17:30 |
6/4/2018 18:00 |
6/4/2018 18:30 |
6/4/2018 19:00 |
6/4/2018 19:30 |
6/4/2018 20:00 |
6/4/2018 20:30 |
6/4/2018 21:00 |
6/4/2018 21:30 |
6/4/2018 22:00 |
6/4/2018 22:30 |
6/4/2018 23:00 |
6/4/2018 23:30 |
6/5/2018 0:00 |
6/5/2018 0:30 |
6/5/2018 1:00 |
6/5/2018 1:30 |
6/5/2018 2:00 |
6/5/2018 2:30 |
6/5/2018 3:00 |
6/5/2018 3:30 |
6/5/2018 4:00 |
0 Response to How to create and define 30 minutes interval data in Stata?
Post a Comment