STATA - Importing Data
Upcoming SlideShare
Loading in...5
×

Like this? Share it with your network

Share
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Be the first to comment
No Downloads

Views

Total Views
2,606
On Slideshare
2,437
From Embeds
169
Number of Embeds
4

Actions

Shares
Downloads
169
Comments
0
Likes
1

Embeds 169

http://www.stata.org.uk 159
http://sitebuilder.yola.com 5
http://muneebaercian.yolasite.com 3
http://www.weebly.com 2

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
    No notes for slide

Transcript

  • 1. STATA: Data Analysis Software STATA Importing Data www.STATA.org.uk Step-by Step Screenshot Guides to help you use STATA Not 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 – drop remove specified variables – keep drop other variables except specified – merge add variables from other dataset – append add 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 Management Statistical Analysis Importing Data Summary Statistics Graphs Linear Regressions Presenting Output Panel Regressions Merge or Drop Data Time Series Analysis Instrumental Variables Probit Analysis