1 / 82

Examine the data

Examine the data. Hsien-Ming Lien Dept of Public Finance, NCCU. 1.1 Read the data. Read the ASCII file infile must provide the variable name, width, and format Read the excel file insheet variable names need to be specified Read the Stata file use c:egstata elemapi

ilam
Download Presentation

Examine the data

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Examine the data Hsien-Ming Lien Dept of Public Finance, NCCU

  2. 1.1 Read the data • Read the ASCII file • infile • must provide the variable name, width, and format • Read the excel file • insheet • variable names need to be specified • Read the Stata file • use c:\regstata\elemapi • from the internet

  3. cd • dir • use • save

  4. 1.2 Describe the data • Describe the data • Data size • Observations • Variable name • Variable type (string, byte, float, etc)

  5. 直接按ok

  6. Variables • api00/academic performance of the school • acs_k3/the average class size in kindergarten through 3rd grade • meals/the percentage of students receiving free meals • full/the percentage of teachers who have full teaching credentials

  7. List • All observations • Some observations • Some variables

  8. 選取變數

  9. Notice the missing values of meals. 

  10. Codebook • Number of values • Missing values • Distribution of values

  11. 選取變數後按ok

  12. summarize • Provide concise information about variables • Observations • Basic statistics (mean, s.d., min, max) • Option: details

  13. 選取變數後按ok

  14. 1.3 Tab the data • Tabulate • Tabulate the size of class size

  15. Look at the school and district number to check if they are from the same district

  16. 1.4 Graph the data • Use graphs to examine the data • Histogram • Stem and leaf plot

More Related