Hi,
I am trying to rename every three variable in my dataset such that the first three variable X1 X2 X3 read HH-W-X1 HH-B-X2 HH-H-X3. Also, I would like to rename the three subsequent variable as follows: X4 X5 X6 —> UH-X4 UX-x5 UX-x6. My data includes 42 variables as X1 X2 ... X42 and I would like to loop this over 42 variables. Thanks for your help.
Best,
NM
Related Posts with Renaming every 3 variable
Help with connecting variables based on id #'sHi All, I am working with a smaller dataset of approximately 500 observations in Stata 15.1. I am i…
corresponding commands for manually adjusting graph Dear All, As requested by Nick Cox, I start this new thread. The original one is here (https://www.…
Screen dataI guess this is a simple question. This is a monthly dataset. Permno is an unique code for firms. …
Unexpected IPO dealsDear Statalists, I am doing the research on some unexpected Initial Public Offering (IPO) events. Ba…
DOLS in time seriesHi, I have found cointegration in my save and investment variables, and I have found some things on…
Subscribe to:
Post Comments (Atom)
0 Response to Renaming every 3 variable
Post a Comment