--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- name: log: /private[practice directory]/replication.log log type: text opened on: 13 Oct 2026, 18:15:14 . use "data/NEW7080.dta", clear . rename v4 education . rename v9 log_weekly_wage . rename v16 census . rename v18 quarter_birth . rename v27 year_birth . keep if inrange(year_birth, 1920, 1929) (816,435 observations deleted) . assert census == 70 . assert _N == 247199 . assert inrange(quarter_birth, 1, 4) . assert !missing(education, log_weekly_wage, year_birth) . . file open results using "estimates.csv", write text replace (file estimates.csv not found) . file write results "model,n,coefficient,standard_error,ci_lower,ci_upper" _n . regress log_weekly_wage education i.year_birth Source | SS df MS Number of obs = 247,199 -------------+---------------------------------- F(10, 247188) = 5100.52 Model | 17934.8419 10 1793.48419 Prob > F = 0.0000 Residual | 86918.1779 247,188 .351627821 R-squared = 0.1710 -------------+---------------------------------- Adj R-squared = 0.1710 Total | 104853.02 247,198 .424166133 Root MSE = .59298 ------------------------------------------------------------------------------ log_weekly~e | Coefficient Std. err. t P>|t| [95% conf. interval] -------------+---------------------------------------------------------------- education | .0801595 .0003552 225.67 0.000 .0794633 .0808557 | year_birth | 1921 | .0055061 .005376 1.02 0.306 -.0050307 .0160429 1922 | -.0002424 .0054144 -0.04 0.964 -.0108545 .0103696 1923 | .0020724 .0054104 0.38 0.702 -.0085318 .0126766 1924 | .0029452 .0053475 0.55 0.582 -.0075359 .0134262 1925 | .0073566 .0053843 1.37 0.172 -.0031965 .0179097 1926 | .0056203 .0054066 1.04 0.299 -.0049765 .0162172 1927 | .00362 .0053426 0.68 0.498 -.0068515 .0140914 1928 | .000773 .0053971 0.14 0.886 -.0098052 .0113511 1929 | -.023484 .0053878 -4.36 0.000 -.0340439 -.0129241 | _cons | 4.233444 .0055394 764.25 0.000 4.222587 4.244301 ------------------------------------------------------------------------------ . matrix OLS = r(table) . file write results "ols," %12.0f (e(N)) "," %21.15g (_b[education]) "," %21.15g (_se[education]) "," %21.15g (OLS[5,1]) "," %21.15g (OLS[6,1]) _n . ivregress 2sls log_weekly_wage i.year_birth (education = i.quarter_birth i.quarter_birth#i.year_birth) Instrumental-variables 2SLS regression Number of obs = 247,199 Wald chi2(10) = 104.35 Prob > chi2 = 0.0000 R-squared = 0.1708 Root MSE = .59307 ------------------------------------------------------------------------------ log_weekly~e | Coefficient Std. err. z P>|z| [95% conf. interval] -------------+---------------------------------------------------------------- education | .0768557 .0150413 5.11 0.000 .0473752 .1063361 | year_birth | 1921 | .0060001 .0058281 1.03 0.303 -.0054227 .017423 1922 | .0002459 .0058535 0.04 0.966 -.0112269 .0117186 1923 | .0028842 .0065523 0.44 0.660 -.0099582 .0157266 1924 | .003957 .0070581 0.56 0.575 -.0098765 .0177906 1925 | .0083179 .0069385 1.20 0.231 -.0052813 .0219172 1926 | .0068714 .0078528 0.88 0.382 -.0085198 .0222626 1927 | .0047215 .0073273 0.64 0.519 -.0096397 .0190827 1928 | .0021448 .0082538 0.26 0.795 -.0140323 .018322 1929 | -.0217599 .0095191 -2.29 0.022 -.040417 -.0031028 | _cons | 4.270489 .1687007 25.31 0.000 3.939841 4.601136 ------------------------------------------------------------------------------ Endogenous: education Exogenous: 1921.year_birth 1922.year_birth 1923.year_birth 1924.year_birth 1925.year_birth 1926.year_birth 1927.year_birth 1928.year_birth 1929.year_birth 2.quarter_birth 3.quarter_birth 4.quarter_birth 2.quarter_birth#1921.year_birth 2.quarter_birth#1922.year_birth 2.quarter_birth#1923.year_birth 2.quarter_birth#1924.year_birth 2.quarter_birth#1925.year_birth 2.quarter_birth#1926.year_birth 2.quarter_birth#1927.year_birth 2.quarter_birth#1928.year_birth 2.quarter_birth#1929.year_birth 3.quarter_birth#1921.year_birth 3.quarter_birth#1922.year_birth 3.quarter_birth#1923.year_birth 3.quarter_birth#1924.year_birth 3.quarter_birth#1925.year_birth 3.quarter_birth#1926.year_birth 3.quarter_birth#1927.year_birth 3.quarter_birth#1928.year_birth 3.quarter_birth#1929.year_birth 4.quarter_birth#1921.year_birth 4.quarter_birth#1922.year_birth 4.quarter_birth#1923.year_birth 4.quarter_birth#1924.year_birth 4.quarter_birth#1925.year_birth 4.quarter_birth#1926.year_birth 4.quarter_birth#1927.year_birth 4.quarter_birth#1928.year_birth 4.quarter_birth#1929.year_birth . matrix IV = r(table) . file write results "2sls," %12.0f (e(N)) "," %21.15g (_b[education]) "," %21.15g (_se[education]) "," %21.15g (IV[5,1]) "," %21.15g (IV[6,1]) _n . estat firststage First-stage regression summary statistics -------------------------------------------------------------------------- | Adjusted Partial Variable | R-sq. R-sq. R-sq. F(30,247159) Prob > F -------------+------------------------------------------------------------ education | 0.0023 0.0022 0.0006 4.59855 0.0000 -------------------------------------------------------------------------- Minimum eigenvalue statistic = 4.59855 Critical Values # of endogenous regressors: 1 H0: Instruments are weak # of excluded instruments: 30 --------------------------------------------------------------------- | 5% 10% 20% 30% 2SLS relative bias | 21.42 11.32 6.09 4.29 -----------------------------------+--------------------------------- | 10% 15% 20% 25% 2SLS size of nominal 5% Wald test | 86.17 44.78 30.72 23.65 LIML size of nominal 5% Wald test | 3.88 2.18 1.89 1.75 --------------------------------------------------------------------- . file close results . display "AK91_TABLE_IV_TWO_COLUMNS_COMPLETED" AK91_TABLE_IV_TWO_COLUMNS_COMPLETED . log close name: log: /private[practice directory]/replication.log log type: text closed on: 13 Oct 2026, 18:15:19 ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------