Hi,
I have two sets of exchange rates (pex and tex), and the dates corresponding to these two sets of exchange rates is 'exdate'. However, I need to extract these two types of exchange rates only for the dates listed under 'secdate'.
* Example generated by -dataex-. To install: ssc install dataex
clear
input float(exdate pex tex) long secdate
13163 8.6456 1.5457 13172
13164 8.6667 1.5386 13173
13165 8.6695 1.5305 13177
13166 8.6543 1.5218 13178
13167 8.6405 1.5105 13179
13168 8.6405 1.5105 13180
13169 8.6405 1.5105 13181
13170 8.6499 1.5149 13184
13171 8.6526 1.514 13185
13172 8.6627 1.513 13186
13173 8.6484 1.5147 13187
end
format %td exdate
format %d secdate
I tried using 'merge' but it didn't work. I appreciate if someone could advise me on how to achieve this.
Thank you
Ama
Related Posts with Matching two sets of dates
covid sandboxBeing locked up at home due to the COVID-19 crisis, I developed an interest in models for the spread…
how to solve those questions about difference in differenceThis question investigates whether restricting youth access to alcohol has impacts on motor vehicle …
Extracting year from Date variableHi all, I want extract year from a date variable. No sure how to do this. Appreciate your assistanc…
Interpreting Depend Variable in Percent (i.e. Growth Rate)Dear Stat List, I know this question has been raised before in various forms, however, I haven't be…
Dropping leading zero observations within several variablesDear Statalisters, I need to drop the leading zeros of lots of separate variables. I have data like…
Subscribe to:
Post Comments (Atom)
0 Response to Matching two sets of dates
Post a Comment