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
Combining Two Similar Variables To be in one rowHi All, I have the following 2 variables that serve the same purpose and I'm trying to generate one…
Reshape numerous variablesI have a vector of numerous variables (>100) that I need to reshape. Basically the format of the …
Survival Analysis - different outputsHello everyone, I am trying to do survival analysis on 2018 Nigeria Demographic and Health Survey D…
Arranging bars of graph barHello community. I am producing a graph with Stata. Here is the output : Array And here is the code …
Stratified sample with probability proportional to sizeWe have a total of 908 communities (each community has a number of households) which are located in …
Subscribe to:
Post Comments (Atom)
0 Response to inputting intraday data from bloomberg
Post a Comment