So here I save it as a new file called slist. You may want to be careful when you save this change, as you will permanently lose all the other variables that are not in the keep list. Note that this change only applies to the copy of the data in the memory, not the file on disk – you need to use the -save- command to make change to the file itself. Now that you should only see the three variables remain in the data. Say we would like to have a separate file contains only the list of the states with the region variable, we can use the -keep- command to do so. Marriage long %12.0gc Number of marriages State2 str2 %-2s Two-letter state abbreviation Variable name type format label variable label Contains data from /Applications/Stata/ado/base/c/census.dta
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |