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
Omitted dummy variables due to collinearity, but missing values should prevent them entering the modelDear Statalisters, I am using Stata SE 17 on Windows 10. I'm conducting a panel data analysis with t…
Why does Stata graph box not ignore missing values _hi Stata Gurus, I am trying to check the outliners in my data. For example, the total asset (ta) of …
Speed comparison: Passing data vector by name vs pointers in Mata | StataI was experimenting with different uses of pointers. Turns out that in a larger dataset, pointer mig…
Need help with nested logit marginal effectsDear scholars, I am having problem estimating the marginal effects after the estimation of my nested…
Change axis label specifications twoway graphHello, I am tyring to group values if the follwing changes of the y-axis label would be possible: -…
Subscribe to:
Post Comments (Atom)
0 Response to Flipping (renaming) a string
Post a Comment