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
Issue Installing PyStataHello! I'm launching Stata from Jupyter notebook (using Anaconda) on a Mac. I'm following this guid…
Options starting with "no" doesn't work, bug or feature?I am defining a program that has non-required options. When the option starts with "no", it doesn't …
Options starting with "no" doesn't work, bug or feature?I am defining a program that has non-required options. When the option starts with "no", it doesn't …
Clogit vs Xtlogit with FE vs Logit with Dummy VariablesHi, I have an unbalanced panel data of stocks with N=20,000 and T=50 years. I have 50 industries. I…
Chow test statisticHi everyone! I tried doing a chow test using -test- and the following command: Code: . suest Brahmi…
Subscribe to:
Post Comments (Atom)
0 Response to Looping with Macros
Post a Comment