Hello,
I have been trying to transform intraday data (downloaded from Bloomberg into an excel file) so that it is easily read by stata. I attach a picture of the data.
The code I have used is:
gen str ts= substr(A, 1, 2502) + " " + substr(A, 25, 4)
gen double dt = clock(ts, "DMY hms ")
*ideally I would use this last sentence to translate the dates, specifying for stata Y/M/D/H/m/s... however this function generates as many missing values as observations (2502).
How can I solve this problem?
So far I have been following the steps in this document: https://www.stata.com/manuals13/u24.pdf
Array
Related Posts with inputting intraday data from bloomberg
Panel data (Trade topics) and countries/sectors fixed effectsDear All, I have a data base with export variation (between 2020 et 2019), by origin countries, des…
Case Control Design: weightingHey guys, I'm conducting a study that analyses the antecedents of corporate divestitures based on a…
Counting events falling in any 5 year window around the focal eventHello everyone, I am working on a dataset containing a sample announcement dates (each standing for…
Question about cyclesBest users, For my thesis I'm partly using a paper by Shue and Townsend, that is on how stock optio…
conindex commandHi All, I am using concentration index for the first time and have no idea how to use it. My study …
Subscribe to:
Post Comments (Atom)
0 Response to inputting intraday data from bloomberg
Post a Comment