vdquadros / immigration_enclave

2 stars 3 forks source link

Tables using ICPSR in Stata #9

Open vdquadros opened 5 years ago

vdquadros commented 5 years ago

Table 2

Looks exactly the same as Card's.

Country of origin Working age population (thousands) Share of all Immigrants (percent) After 1980 After 1990 Mean years completed Dropouts 12-15 years College or more
Natives 141,475 13.3 14.2 60.6 25.2
Immigrants 23,627 100 70.5 39.9 11.6 37.4 38.8 23.8
Mexico 7,267 30.8 75.1 43.8 8.6 69.8 26.5 3.7
Philippines 1,078 4.6 66.1 31.5 14.1 9.2 43.7 47
India 838 3.5 78.4 51.4 15.6 9.6 20.2 70.2
Vietnam 806 3.4 75.3 39.7 11.7 34.6 45.8 19.6
China 715 3 82 50.1 13.6 24.2 29.2 46.7
El Salvador 698 3 85.1 37 8.9 65 30.6 4.4
Korea 664 2.8 66.4 33.1 14 10.6 45.8 43.6
Cuba 586 2.5 52.3 29.1 12.5 30 48.3 21.7
Dominican Republic 536 2.3 74.2 38.1 10.8 48.8 41.9 9.3
Canada 517 2.2 47.6 31.9 14.3 8.9 49.8 41.3
Germany 455 1.9 32.6 21 13.9 8.3 59.3 32.4
Jamaica 429 1.8 66.7 27.3 12.6 23.8 57.8 18.4
Colombia 400 1.7 71.9 40.5 12.5 24.7 53.3 21.9
Guatemala 400 1.7 84 45.9 8.8 64.5 30.4 5.1
Haiti 333 1.4 75.1 34.5 11.8 35.2 51.3 13.5
Poland 310 1.3 74.5 42.3 13.3 16.3 58.2 25.6

Table 3

Imm status/gender Year Education Experience Employment rate( %) Mean wage Overall Variance (log wage) Residual
Native men 1980 12.5 18.8 90.2 25.07 0.379 0.283
1990 13.0 18.9 89.3 23.90 0.452 0.319
2000 13.2 20.4 86.8 25.84 0.486 0.358
Native women 1980 12.2 19.7 65.4 16.73 0.315 0.267
1990 12.8 19.4 74.9 17.07 0.381 0.294
2000 13.3 20.7 77.1 19.52 0.408 0.320
Immigrant men 1980 11.6 19.1 87.5 24.49 0.435 0.327
1990 11.4 18.1 87.1 21.83 0.513 0.370
2000 11.6 18.8 86.5 23.21 0.557 0.409
Immigrant women 1980 11.0 20.6 60.0 17.15 0.342 0.295
1990 11.2 19.9 65.1 16.96 0.413 0.331
2000 11.7 20.0 64.8 19.27 0.484 0.381

Table 6

Columns (1)-(4) are still a bit strange, especially because the R2 is lower and the sign for the lagged dependent variable is negative (instead of positive as in Card's paper). Columns (5)-(8) are pretty close.

------------------------------------------------------------------------------------
                                1               2               3               4   
                             b/se            b/se            b/se            b/se   
------------------------------------------------------------------------------------
Log rel supply imm~e       -0.020***       -0.020***       -0.025***       -0.026***
                           (0.00)          (0.00)          (0.00)          (0.00)   
Log msa size 1980          -0.076***       -0.077***       -0.083***       -0.086***
                           (0.00)          (0.00)          (0.00)          (0.00)   
Log msa size 1990           0.077***        0.078***        0.086***        0.089***
                           (0.00)          (0.00)          (0.00)          (0.00)   
College share 1980          0.078***        0.083***        0.091***        0.102***
                           (0.02)          (0.02)          (0.02)          (0.02)   
College share 1990         -0.044***       -0.050***       -0.048***       -0.062***
                           (0.01)          (0.01)          (0.01)          (0.01)   
Wage res native 1980        0.139***        0.134***        0.137***        0.125***
                           (0.00)          (0.00)          (0.00)          (0.01)   
Wage res imm 1980          -0.166***       -0.160***       -0.166***       -0.152***
                           (0.00)          (0.00)          (0.00)          (0.00)   
Mfg share in 1980          -0.049***       -0.038***       -0.080***       -0.057***
                           (0.01)          (0.01)          (0.01)          (0.01)   
Mfg share in 1990          -0.055***       -0.070***       -0.023          -0.056***
                           (0.01)          (0.01)          (0.01)          (0.01)   
Lagged dep var                             -0.012***                       -0.026***
                                           (0.00)                          (0.00)   
constant                   -0.054***       -0.053***       -0.078***       -0.079***
                           (0.00)          (0.00)          (0.00)          (0.00)   
------------------------------------------------------------------------------------
r2                          0.145           0.145           0.140           0.139   
------------------------------------------------------------------------------------

------------------------------------------------------------------------------------
                                5               6               7               8   
                             b/se            b/se            b/se            b/se   
------------------------------------------------------------------------------------
Log rel supply imm~e       -0.055***       -0.048***       -0.076***       -0.066***
                           (0.00)          (0.00)          (0.00)          (0.00)   
Log msa size 1980          -0.021***       -0.023***       -0.039***       -0.036***
                           (0.00)          (0.00)          (0.00)          (0.00)   
Log msa size 1990           0.011***        0.020***        0.035***        0.035***
                           (0.00)          (0.00)          (0.00)          (0.00)   
College share 1980         -0.177***       -0.176***       -0.129***       -0.141***
                           (0.02)          (0.02)          (0.02)          (0.02)   
College share 1990          0.047***        0.085***        0.025           0.059***
                           (0.01)          (0.01)          (0.01)          (0.01)   
Wage res native 1980        0.214***        0.323***        0.214***        0.295***
                           (0.01)          (0.01)          (0.01)          (0.01)   
Wage res imm 1980          -0.132***       -0.252***       -0.125***       -0.217***
                           (0.00)          (0.00)          (0.00)          (0.01)   
Mfg share in 1980          -0.367***       -0.410***       -0.388***       -0.415***
                           (0.01)          (0.01)          (0.01)          (0.01)   
Mfg share in 1990           0.495***        0.540***        0.493***        0.527***
                           (0.01)          (0.01)          (0.01)          (0.01)   
Lagged dep var                              0.183***                        0.137***
                                           (0.00)                          (0.00)   
constant                   -0.048***       -0.081***       -0.132***       -0.135***
                           (0.00)          (0.00)          (0.00)          (0.00)   
------------------------------------------------------------------------------------
r2                          0.344           0.373           0.313           0.355   
------------------------------------------------------------------------------------
vdquadros commented 5 years ago
Year Group Code and data Overall Residual
1980 Native men Card's paper 0.385 0.288
Card's code with our dataset 0.387 0.292
Stata code with our dataset 0.379 0.283
Native women Card's paper 0.317 0.269
Card's code with our dataset 0.316 0.272
Stata code with our dataset 0.315 0.267
Immigrant men Card's paper 0.444 0.321
Card's code with our dataset 0.444 0.322
Stata code with our dataset 0.435 0.327
Immigrant women Card's paper 0.343 0.291
Card's code with our dataset 0.343 0.292
Stata code with our dataset 0.342 0.295
econisaac commented 5 years ago

If you run regressions on the dataset built from the sas code...what do things look like? (We could imagine building the dataset using sas and then converting to stata...).

Sent from my phone. Apologies for excessive terseness.

On Mar 4, 2019, at 3:13 PM, vdquadros notifications@github.com wrote:

Year Group Code and data Overall Residual 1980 Native men Card's paper 0.385 0.288 Card's code with our dataset 0.387 0.292 Stata code with our dataset 0.379 0.283 Native women Card's paper 0.317 0.269 Card's code with our dataset 0.316 0.272 Stata code with our dataset 0.315 0.267 Immigrant men Card's paper 0.444 0.321 Card's code with our dataset 0.444 0.322 Stata code with our dataset 0.435 0.327 Immigrant women Card's paper 0.343 0.291 Card's code with our dataset 0.343 0.292 Stata code with our dataset 0.342 0.295 — You are receiving this because you were assigned. Reply to this email directly, view it on GitHub, or mute the thread.

vdquadros commented 5 years ago

I will edit this comment later to explain what this regression is in more detail, but it is basically re-running the regression after I fixed a bug I found while running the files in SAS. As you can see, it pretty much doesn't change Table 6.

------------------------------------------------------------------------------------
                                1               2               3               4   
                             b/se            b/se            b/se            b/se   
------------------------------------------------------------------------------------
Log rel supply imm~e       -0.020***       -0.020***       -0.025***       -0.026***
                           (0.00)          (0.00)          (0.00)          (0.00)   
Log msa size 1980          -0.076***       -0.077***       -0.083***       -0.086***
                           (0.00)          (0.00)          (0.00)          (0.00)   
Log msa size 1990           0.077***        0.078***        0.086***        0.089***
                           (0.00)          (0.00)          (0.00)          (0.00)   
College share 1980          0.062***        0.067***        0.077***        0.089***
                           (0.02)          (0.02)          (0.02)          (0.02)   
College share 1990         -0.034**        -0.040**        -0.039**        -0.054***
                           (0.01)          (0.01)          (0.01)          (0.01)   
Wage res native 1980        0.134***        0.129***        0.134***        0.122***
                           (0.00)          (0.00)          (0.00)          (0.00)   
Wage res imm 1980          -0.159***       -0.154***       -0.161***       -0.148***
                           (0.00)          (0.00)          (0.00)          (0.00)   
Mfg share in 1980          -0.067***       -0.057***       -0.094***       -0.072***
                           (0.01)          (0.01)          (0.01)          (0.01)   
Mfg share in 1990          -0.032**        -0.046***       -0.005          -0.036** 
                           (0.01)          (0.01)          (0.01)          (0.01)   
Lagged dep var                             -0.011***                       -0.026***
                                           (0.00)                          (0.00)   
constant                   -0.054***       -0.054***       -0.078***       -0.079***
                           (0.00)          (0.00)          (0.00)          (0.00)   
------------------------------------------------------------------------------------
r2                          0.144           0.144           0.139           0.138   
------------------------------------------------------------------------------------
* p<0.05, ** p<0.01, *** p<0.001

.    
.    
. estout m3 m4 m7 m8, cells(b(star fmt(3)) se(par fmt(2)))  ///
>    legend label varlabels(_cons constant)              ///
>    stats(r2)

------------------------------------------------------------------------------------
                                5               6               7               8   
                             b/se            b/se            b/se            b/se   
------------------------------------------------------------------------------------
Log rel supply imm~e       -0.056***       -0.049***       -0.076***       -0.066***
                           (0.00)          (0.00)          (0.00)          (0.00)   
Log msa size 1980          -0.021***       -0.024***       -0.038***       -0.035***
                           (0.00)          (0.00)          (0.00)          (0.00)   
Log msa size 1990           0.012***        0.020***        0.034***        0.034***
                           (0.00)          (0.00)          (0.00)          (0.00)   
College share 1980         -0.211***       -0.216***       -0.163***       -0.180***
                           (0.02)          (0.02)          (0.02)          (0.02)   
College share 1990          0.071***        0.111***        0.048***        0.085***
                           (0.01)          (0.01)          (0.01)          (0.01)   
Wage res native 1980        0.208***        0.312***        0.213***        0.291***
                           (0.01)          (0.01)          (0.01)          (0.01)   
Wage res imm 1980          -0.123***       -0.238***       -0.122***       -0.210***
                           (0.00)          (0.00)          (0.00)          (0.00)   
Mfg share in 1980          -0.392***       -0.437***       -0.406***       -0.436***
                           (0.01)          (0.01)          (0.01)          (0.01)   
Mfg share in 1990           0.516***        0.563***        0.509***        0.546***
                           (0.01)          (0.01)          (0.01)          (0.01)   
Lagged dep var                              0.179***                        0.135***
                                           (0.00)                          (0.00)   
constant                   -0.049***       -0.081***       -0.128***       -0.131***
                           (0.00)          (0.00)          (0.00)          (0.00)   
------------------------------------------------------------------------------------
r2                          0.350           0.378           0.322           0.361   
------------------------------------------------------------------------------------
* p<0.05, ** p<0.01, *** p<0.001