![]() ![]() Use if id <= 1000 using name-of-data-file Will load only the three variables mentioned into your working memory. Use var1 var17 var38 using name-of-data-file "Limiting" the data may refer to the variables used and/or to the selection of a subsample of cases. If you know from the outset that you need only parts of a data set, you may request Stata to limit the data to be loaded. Single quotation marks won't do the trick. Important note: If one or several of the directories or the name of the data set contain empty spaces (blanks), they have to be placed within double quotation marks. Another way is to change to the pertinent directory first and then to "use" the data file: Where you have to fill in your directory and data set name. Use c:\mydirectory\mysubdirectory\name-of-data-file If the data set can be found somewhere else, you may write, for instance Up to now, I have assumed that the data are in your working directory, which normally is called "data" on a Windows PC. If you are already using another data set and want to replace it (either having saved it or not wanting to save it) with the new data set, you will write: ![]() If you want to use an already existing Stata system file (with extension ".dta"), the appropriate command is ![]() WLM-Stata - Read Data Internet Guide to Stata ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |