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
DataexPlease house, I need a users' guide on dataex, I am using stata 16 SE on window 7. Thanks for your a…
IV Regression With Interaction Terms and 2+ InstrumentsDear all, Greetings to all contributors from someone new to the forum and a user of Stata 15.1/SE. …
ppmlhdfe standard errors Newey westHello Statalist users, I have a question regarding the ppmlhdfe command. More precisely, I have a (…
Histogram with differences in sharesHello, I have the following problem in Stata: I want to construct a histogram showing the differen…
IV Regression With Interaction Terms and 2+ InstrumentsDear all, Greetings to all contributors from someone new to the forum and a user of Stata 15.1/SE. …
Subscribe to:
Post Comments (Atom)
0 Response to Renaming every 3 variable
Post a Comment