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
What does "star" option in pwcorr mean?Normally I used pwcorr to have a correlation matrix. And for such a command, we have a star option. …
cannot run GMMDear Statalist, I am using stata v.14... I have unbalanced panel data with T = 17 and N = 18. I mo…
Regression analysis with panel dataHello Everyone, I have a panel dataset with approximately 5300 observations and I am analysing if a…
Why using the same code but can run in one machine and cannot run in another machine resulting r(123)?Hi all, I suspect the problems previously but I can confirm today that some code of mine can work i…
Table1 command issueHello, when I write this command: table1, by (pes) vars(edad conts \ par_cat cat \ hta cat \ preprev…
Subscribe to:
Post Comments (Atom)
0 Response to variable renaming with values
Post a Comment