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
Work without shapefileHi to everyone. I state that I am new to Spatial Econometrics. My data set is composed of 32 gasolin…
qregsel implementationDear members Am implementing the recommendations in this paper https://www.stata.com/meeting/us20/s.…
Firm, industry and event fixed effects in a regression modelI am doing an event study on the impact of ESG on stock returns. I have performed the event study it…
Problem with -replace- var ... if ... I was suprised to see that the last two commands ("replace new_var = 0 [...] and replace new_var = …
Panel data with lagged independent variables and dependent variable only two periodsHi Member, Please, does anyone could help me? I need to lag and lead one independent variable in my …
Subscribe to:
Post Comments (Atom)
0 Response to Looping with Macros
Post a Comment