Where variable is the name of the variable you want to create or change, and expression is the mathematical expression whose result you want to put in it. ![]() gen creates new variables replace changes the values of existing variables. The primary commands for creating and changing variables are generate (usually abbreviated gen) and replace (which, like other commands that can destroy information, has no abbreviation). This article will teach you the basics of making new variables, modifying existing variables, and creating labels. ![]() If you're new to Stata we highly recommend starting from the beginning. This is part six of Introduction to Stata.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |