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
no observations error messageHi all, Can someone explain to me why I get the 'no observations' error message when I execute the …
Issue about Counting Time Spans Sorted by Specific VariablesHi Statalisters, I have such a sample dataset and want to count the year span sorted by specific va…
count categorical values by using conditions row wiseHi, I have a a dataset such as below input str3(A B C) str3(X Y Z) Yes No No Yes No No No No No Yes…
Generate table or data set containing test results from -signtest-Hi I am currently having problems with how to efficiently store test results that I obtain from runn…
Query on "characteristic contents too long" errorDear Statalisters, I am employing a partial linear regression model (plreg) in a cross-sectional co…
Subscribe to:
Post Comments (Atom)
0 Response to Renaming Variables
Post a Comment