I am using STATA 15. I have a large data set with multiple columns and rows. I am interested in two variables , var1 and var2, each of which have multiple entries. I would like to rename var1 with the same name as var2. However, when I use the code rename var1 var2, I receive the error message variable var2 already defined. When I use the code rename (var1 var2) (var3 var3), I get the following error message: 1 new name specified repeatedly in newname. You requested the name var3 be assigned to 2 existing variables: var1 and var2.
How can I make the two columns of data with the two different variable names both have the same name?
Thank you.
Related Posts with Renaming Variables
Panel Data TechniquesHello, I'm running a fixed effect model (after proven by Hausman Test) and I'm not sure if the code …
Is it possible to add multiple recode commands to one newly generated variable?Hello all! I saw a few forums that were somewhat similar to this but did not answer this exact quest…
SubcontractingHey everyone! I am looking for an econometric model for my research. I will be using the CPS Conti…
How to differentiate "tabulate", "table", "tabstat", "tabdisp"?I don't know which one should be used in specific cases. Many thanks in advance! …
First differences and lagged variables in panel dataHello everybody, I'm quite new to Stata and I would like to generate first differences of all my va…
Subscribe to:
Post Comments (Atom)
0 Response to Renaming Variables
Post a Comment