Joseph Nathan Cohen

Department of Sociology, CUNY Queens College, New York, NY

Renaming Variables in Stata

To see more about the “Teaching through YouTube” series.  For more, see this post.

Original Video Description

How to rename variables in Stata.

Transcription (Auto-Generated)

in this video i’ll show you how to rename variables in stata we use the rend command to rename variables ren is short for rename the syntax for the rename command is ren space the old variable name and the new variable name for example ren net users net u renames the variable called net users to be called net u let’s see what it looks like to rename variables in a real status session i’m going to rename the variable degree as education i type ren degree education as you can see the degree variable is renamed education i can name it i can change the name back by typing ren education degree let’s review to rename variables in stata we type ren the old name of the variable and the new name that we want to change it to for more information type help rename in this data command window