Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Do file giving different tables

    Hi Guys!
    I'm trying to replicate a paper from the American Economic Association- Racial Discrimination in Grading: Evidence from Brazil. However, the tables are coming very differently from executing the DO file. Even the terms in the table do not match.
    In the original do files, I replaced the .out to .txt to get a result but somehow it did not work. I have attached the paper and data link, and the table which I'm getting.
    https://www.openicpsr.org/openicpsr/...ersion/V1/view (Data Link)
    Hope someone helps me out as I'm new at Stata

    I tried replacing outreg2 using "Table1.out" to outreg2 using "Table1.txt" but still things did not change.
    Attached Files

  • #2
    I think you are expecting the results of the replication code to reproduce the nicely formatted table in the paper. No, it reproduces the analysis that went into producing Table 1, it does not reproduce the layout and formatting, most of which I hazard a guess was done by hand.

    From your Table1.txt here are the rows containing the data for the first two columns.
    Code:
    rstd_black      -0.241***       -0.338***
                    (0.007)         (0.007)
    rstd_brown      -0.025***       -0.122***
                    (0.005)         (0.005)
    rstd_othrace    -0.318***       -0.415***
                    (0.009)         (0.009)
    rstd_white      0.096***
                    (0.005)
    Constant                        0.096***
                                    (0.005)
    
    Observations    277,444         277,444
    R-squared       0.016           0.016
    And from the PDF of the paper, here are the first two columns of Table 1.

    Click image for larger version

Name:	Table1.png
Views:	1
Size:	13.5 KB
ID:	1537851

    Comment


    • #3
      Thank you for your help. Can you please tell me one more thing. How should I edit it in an effective manner to get the desired table?

      Comment


      • #4
        All I can suggest is to bring it into your word processing program and start editing. It may be helpful to have outreg2 output a file in Word format or LaTeX format, depending on what you use for writing papers. Or perhaps in Excel - it's easy to move things around in Excel, to get things in the order they need to be in, and then copy the table and paste it into Word.

        Comment

        Working...
        X