STATA - Importing Data

of 53 /53
STATA: Data Analysis Software www.STATA.org.uk Step-by Step Screenshot Guides to help you use STATA Not affiliated with Stata Corp. STATA Importing Data

Embed Size (px)

Transcript of STATA - Importing Data

  • 1. STATA: Data Analysis Software STATA Importing Data www.STATA.org.uk Step-by Step Screenshot Guidesto help you use STATANot affiliated with Stata Corp.

2. Datasets Used in Tutorial Datasets in these tutorials are based on examples in:Stock and Watson (2006)Introduction to Econometrics You can obtain all of the datasets used in these tutorials by downloading a STATA command file from http://www.stata.org.uk/download-examples.html 3. Outline Data Importing and Editing Import Comma-Separated Value (CSV) Files Generate New Variables Save Dataset Close and Re-open Dataset Create a do-file Use the Help System Challenge 4. Outline Data Importing and Editing Import Comma-Separated Value (CSV) Files Generate New Variables Save Dataset Close and Re-open Dataset Create a do-file Use the Help System Challenge 5. Outline Data Importing and Editing Import Comma-Separated Value (CSV) Files Generate New Variables Save Dataset Close and Re-open Dataset Create a do-file Use the Help System Challenge 6. Outline Data Importing and Editing Import Comma-Separated Value (CSV) Files Generate New Variables Save Dataset Close and Re-open Dataset Create a do-file Use the Help System Challenge 7. Outline Data Importing and Editing Import Comma-Separated Value (CSV) Files Generate New Variables Save Dataset Close and Re-open Dataset Create a do-file Use the Help System Challenge 8. Outline Data Importing and Editing Import Comma-Separated Value (CSV) Files Generate New Variables Save Dataset Close and Re-open Dataset Create a do-file Use the Help System Challenge 9. Other Useful Commands To find help on any other command just type help commandname Other useful data management commands replace change contents of variable dropremove specified variables keepdrop other variables except specified merge add variables from other dataset appendadd observations from other dataset 10. Outline Data Importing and Editing Import Comma-Separated Value (CSV) Files Generate New Variables Save Dataset Close and Re-open Dataset Create a do-file Use the Help System Challenge 11. Data Importing and Editing: Challenge Challenge Create a dummy variable for English Learners Method Import caschool.csv Generate new variable (HiEl=1 if el_pct>20) Save dataset Create a do-file and copy commands 12. www.STATA.org.uk If you visit www.STATA.org.uk you can download tutorials on these other topics: Data ManagementStatistical Analysis Importing Data Summary Statistics Graphs Linear Regressions Presenting OutputPanel Regressions Merge or Drop Data Time Series AnalysisInstrumental VariablesProbit Analysis