Quantcast
Channel: Statalist
Viewing all articles
Browse latest Browse all 72784

how to define a date and time as a timeseries?

$
0
0
Hi Guys, I've done quite some research on this online and found nothing thats able to help me.
I am working on a project through in which I will be looking at the data of changes in stocks on 15 minute intervals. shown below.

Date Time Index Futures
31/10/2012 13:30 1415.48 1410.7
31/10/2012 13:45 1416.54 1411.7
31/10/2012 14:00 1414.13 1409.5

I need to set a timeseries incluing the date and exact time of my values. I am well aware i need to create a new date variable for this and specify that it is through "DMYhm".

Is there a way i can perhaps use this already existant date and time value, or do I create a new one, which is what i have been trying to do.
All i have managed to do is generate dates that do not take into account the time which i need, or using %tc stata generates me a new variable that is dates 1 jan 1960 and the time on that is wrong to.

Any help would be great!

Thanks.

Viewing all articles
Browse latest Browse all 72784

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>