HI
I have a query about looping with macros. I have uploaded a do-file of my code to this post. Essentially I am dealing with exchange rate data for 51 countries currently quoted relative to UK pounds and looking to convert to USD exchange rates by multiplying each country by the UK exchange rate. This is what I am looking for the loop to do. I have defined local macros for each country and a loop around these macros to achieve this. Unfortunately, whilst the code runs, the result is not correct for any of the countries other than the 1st (Argentina). I was wondering if anyone can spot a mistake in my code that can explain what is wrong?
Kind Regards
Sun Yong
Related Posts with Looping with Macros
Bar graph colorsDear All, consider the following code and the corresponding output: Code: clear all sysuse auto g…
?Longitudinal analysisI am working on some clinical data looking at echocardiographic features of patients after surgery. …
Repeated Cross sectional regression commandsHello guys, I am working on repeated cross sectional data sets on women (health related) for 36 coun…
First differences - Ordered ProbitHi, I have a dataset (T=2 and N=4300 (2300 in the first wave of which 2000 panels are present in the…
twoway rspike: how to make the spike it appear vertically in the legend?Dear Statalisters, please let me know if there is already a thread about this - I did not find one.…
Subscribe to:
Post Comments (Atom)
0 Response to Looping with Macros
Post a Comment