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
Error with levelsof but not levels commandHi everyone, Has anyone experienced errors with levelsof not present with levels commands? This curi…
Exporting sts list data?Hi, Does anyone know how to export sts list data using putdocx or other means -- without having to …
Collinarity in Fracreg analysis and collin commandDear statalisters, I am writing you because I am using fractional logistic regressions for my analy…
How to loop over a merge of inconsistent variables over timeDear StataList. I need to merge two sets of data (partner + respondent) per wave for many waves. Th…
how to calculate cumulative observation for a certain time interval, like 10 years?Hi Guys: i am new here. I have a dataset that records two states and if they had militarized dispute…
Subscribe to:
Post Comments (Atom)
0 Response to Looping with Macros
Post a Comment