Stata Basics - Creating New Variables with Generate and Replace
Channel: Sean Craig
Date: 2020-03-23

This video demonstrates how to use the commands "generate" and "replace" to manipulate variables using Stata. Specifically, I cover how to take an existing variable with many values and breaking it down into a variable with few values. There's a lot more you can do with these commands, but using them to create simple dichotomous and ordinal variables is one of the most common use cases.


This video was prepared for social science undergraduates taking a course in research methods. It assumes that viewers are comfortable with basic data concepts but lack experience and/or comfort with Stata itself.