This tells us that it is a numeric variable that has value labels associated with it. What about the foreign variable? (Scroll right to see it.) It looks like text, but note that the text is blue instead of red. In this data set the make variable is a text variable and all the others are numbers. There are two main kinds of variables: numbers and text (Stata generally calls text variables "strings"). Always be sure you know what an observation is in your data set. In this data set an observation represents a kind of car, but just looking at it you might wonder if it represented individual cars. The rows are always represent observations, though it's not always obvious what an "observation" is in a given data set. This will open the data browser and let you look at the data set you've loaded.Īs you see, a Stata data set looks a lot like a spreadsheet, only more structured. Or click the button at the top that looks like a magnifying glass looking at a spreadsheet. This will load an example data set of 1978 cars that comes with Stata. In this section we'll take a look at two Stata data sets and see how they're put together. If you are new to Stata we strongly recommend reading all the articles in the Stata Basics section. This article is part of the Stata for Students series.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |