Consider the following
When I try and tsset this, Stata complains, saying "time variable must contain only integer values". Why? I don't understand. How may I properly tsset this?
EDIT: I read I can do something like this
but this is absolutely maddening to me, since Stata should be able to tsset minute by minute data.
Code:
* Example generated by -dataex-. For more info, type help dataex
clear
input double(time output)
1.7672256e+12 1089.3023560926383
1767229199999.9998 1059.8515789484773
1767232800000.0002 993.9003888320159
1.7672364e+12 1002.1037581203718
1767239999999.9998 1014.5429606629094
1767243600000.0002 1038.115628910161
1.7672472e+12 1059.0748396748595
1767250799999.9998 1061.8988612010642
1767254400000.0002 1095.3012794408835
1.767258e+12 1142.1110120989183
end
format %tcnn/dd/ccYY_hh:MM time
cls
tsset time, clocktime
EDIT: I read I can do something like this
Code:
g time = _n tsset time

Comment