Hello,
I have data in the following format. I want to examine when the most activity occurs by half hours. This code extracts the hour - gen double myhour = hh(testvar). Would I need to transform the data into a string and rename time units as 1pm to 1.30 pm etc, or is there a more efficient way to do this.
Any assistance is appreciated.
Bob
I have data in the following format. I want to examine when the most activity occurs by half hours. This code extracts the hour - gen double myhour = hh(testvar). Would I need to transform the data into a string and rename time units as 1pm to 1.30 pm etc, or is there a more efficient way to do this.
Any assistance is appreciated.
Bob
Code:
* Example generated by -dataex-. To install: ssc install dataex clear input double testvar -1893406560000 -1.8933828e+12 -1893382140000 -1893379380000.0002 -1.8933705e+12 -1893384660000 -1893405239999.9998 -1893401880000 -1893401160000 -1893401640000 -1893393780000 end format %tchh:MM testvar
Comment