Hello,
I have a series of variable names PID3, PID4, PID5...PIDn that I want to rename PID1, PID2, PID3...PIDn-2
What's the best way to do this? I know I could by converting the varnames to values, splitting the columns, subtracting 2, and remerging the columns. Is there something a bit more elegant?
Thanks for any help!
Reese
Related Posts with variable renaming with values
Creating Random VariableHi everyone. I just started to learning Stata. I have a question. How can i create a F random variab…
How to setup ONE STEP SYSTEM GMMHello, can someone explain how to set up the ONE STEP SYSTEM GMM in the Dynamic Panel choice in STAT…
PPML estimationJoao Santos Silva Dear Joao Santos Silva I am very new to gravity model , your kind suggestion on th…
Epxorting data to excelCan I export data to excel including variable name in the first row and label in the second row, and…
Graph combine different titles for columnsI use graph combine to combine multiple graphs in two columns and I would like to have two different…
Subscribe to:
Post Comments (Atom)
0 Response to variable renaming with values
Post a Comment