Introduction to Stata - Getting started

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
hi my name is aimy penn in this getting started section i'll review the bare basics of data so let's begin here's the Stata interface when you first open it without any data set the window on the bottom is called command and is where you type in your commands Stata then shows the results of the command in the larger window directly above it then your command is added to the list on the left in the window called review where you can keep track and recall any command you have used the window on the upper right is called variables and lists variables in your data set lastly the properties window is on your bottom right it just displays properties of your variables and data set there are other windows that are useful too namely the data editor the do file editor and the variables manager the data editor can be found under the windows tab over here also it can be found on the icon menu bar over here or you could even open it by typing the command edit in the command box below this is where your data base is contained you can view and manipulate your data from here the do file editor is another important window in Stata you can also find it under the windows tab right below the data editor or you can also click on it on the icon menu bar over here this is where you can store your commands of interest for future reference annotate your commands and even run all these commands at once without retyping anything lastly the variables manager window can be found under the window tab at the very end over here or on the icon menu bar over here this is where you can edit your variables by hand however I prefer editing my variables using commands as it can be faster at times lastly these two icons on the end will appear green and red and you can click them to advance further in the output for the green or to break it because that results output can be too long now let's explore the windows just mentioned with a database fortunately Stata has many open source datasets for students to download and explore to download a data set from Stata you must be connected to the Internet first if you have internet on your computer now you might type this command in sis use Life X this will immediately open the data set called life expectancy into your own Stata you can see that our command sis use life x immediately got listed in the review window here while the variables of the life expectancy data populated in the variables window also when we type edit now in the command box we can view our raw data and see what data points exist for each country here you can scroll up and down notice the different colors of the data points we have blue red and black text that is black like these mean that these are numeric data data with real numbers text that is red like the country names means that the data has letters and characters something called string data and lastly the blue color over here is interesting you can see that it says Europe and Central Asia that's what it says in text but when you click on it it says 1 and if you scroll down to North America it says 2 and to South America says 3 this is a special case where there are labels that at its heart the variable region has numeric data has one twos threes but you can put a label on top of number two represent something else other than the number itself another nice feature in Stata is called the filter bar it's also known as your search term bar or your variable search bar so when you go to the variable window you can look for the icon that looks like a funnel over here and click it once you click it you can type in your search terms here type the word annual and it shows pop growth because the word annual is in the label of the variable this concludes the Stata introduction tutorial
Info
Channel: UCSF GSI
Views: 55,841
Rating: 4.7630663 out of 5
Keywords: Stata
Id: w8Zc8TYQvzQ
Channel Id: undefined
Length: 5min 2sec (302 seconds)
Published: Thu May 08 2014
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.