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
contrast doesn't workHello everybody, I tried to use contrast in order to see if I should use some categorical variables…
Principal Component Analysis with 3000 variablesHi My dataset consists of daily Google search volume indices (SVI) for around 3000 firms from 2004 …
R-squared rockets when adding a categorical vairable in the Random Effect modelDear readers of Statalist, I have an unbalanced panel data of companies in a country and their corr…
Macro expansion in a while loopI'm having a little trouble with macro expansion inside a while loop. As a toy example, the followin…
score06 giving me errorHello, I run the following zscore06 commands and giving me the error message: zscore06, a(child_va…
Subscribe to:
Post Comments (Atom)
0 Response to Renaming Variables
Post a Comment