Hello, I have a series of varnames named year2010A | year2010B | ... | year2011A | year2011B | ...
I want to rename these (so that ultimately I can reshape) to A2010, B2010, ... , A2011, B2011, etc.
How can I so this?
I have tried multiple loops, local names, and substr()'s but I cannot get the final outcomes.
Thank you very much in advance!
Related Posts with Flipping (renaming) a string
Pesaran TestHi guys, I am running a fixed effects regression and wanted to test for cross-sectional dependence. …
Years are dropped when running a fixed effect regressionDear all, For my thesis, for which I have gathered panel data, I have to run a logit regression wit…
Mediation suregDear all, I am running the follwing STATA code from the example from this website: https://stats.id…
Help needed: Creating a panel data set with individuals within countriesHello, I am trying to create a panel data set, for individuals within European countries over the t…
OLS Regression with lagsHey! I am writing my bachelor thesis, studying the relationship between monetary policy and housing…
Subscribe to:
Post Comments (Atom)
0 Response to Flipping (renaming) a string
Post a Comment