------------------------------------------------------------------------------------------------------ log: /Users/rossman/Documents/f08_210A/homework_w4.txt log type: text opened on: 21 Oct 2008, 23:07:40 . sysuse nlsw88.dta (NLSW, 1988 extract) . cd "/Users/rossman/Documents/f08_210A/" /Users/rossman/Documents/f08_210A/ . codebook wage ------------------------------------------------------------------------------------------------------ wage hourly wage ------------------------------------------------------------------------------------------------------ type: numeric (float) range: [1.0049518,40.74659] units: 1.000e-07 unique values: 967 missing .: 0/2246 mean: 7.76695 std. dev: 5.75552 percentiles: 10% 25% 50% 75% 90% 3.22061 4.25926 6.27227 9.59742 12.7778 . histogram wage (bin=33, start=1.0049518, width=1.2042921) . graph export w4_wage.png, replace (file w4_wage.png written in PNG format) . reg wage Source | SS df MS Number of obs = 2246 -------------+------------------------------ F( 0, 2245) = 0.00 Model | 0 0 . Prob > F = . Residual | 74367.9674 2245 33.1260434 R-squared = 0.0000 -------------+------------------------------ Adj R-squared = 0.0000 Total | 74367.9674 2245 33.1260434 Root MSE = 5.7555 ------------------------------------------------------------------------------ wage | Coef. Std. Err. t P>|t| [95% Conf. Interval] -------------+---------------------------------------------------------------- _cons | 7.766949 .1214451 63.95 0.000 7.528793 8.005105 ------------------------------------------------------------------------------ . reg wage Source | SS df MS Number of obs = 2246 -------------+------------------------------ F( 0, 2245) = 0.00 Model | 0 0 . Prob > F = . Residual | 74367.9674 2245 33.1260434 R-squared = 0.0000 -------------+------------------------------ Adj R-squared = 0.0000 Total | 74367.9674 2245 33.1260434 Root MSE = 5.7555 ------------------------------------------------------------------------------ wage | Coef. Std. Err. t P>|t| [95% Conf. Interval] -------------+---------------------------------------------------------------- _cons | 7.766949 .1214451 63.95 0.000 7.528793 8.005105 ------------------------------------------------------------------------------ . reg wage Source | SS df MS Number of obs = 2246 -------------+------------------------------ F( 0, 2245) = 0.00 Model | 0 0 . Prob > F = . Residual | 74367.9674 2245 33.1260434 R-squared = 0.0000 -------------+------------------------------ Adj R-squared = 0.0000 Total | 74367.9674 2245 33.1260434 Root MSE = 5.7555 ------------------------------------------------------------------------------ wage | Coef. Std. Err. t P>|t| [95% Conf. Interval] -------------+---------------------------------------------------------------- _cons | 7.766949 .1214451 63.95 0.000 7.528793 8.005105 ------------------------------------------------------------------------------ . bstrap, reps (10): reg wage (running regress on estimation sample) Bootstrap replications (10) ----+--- 1 ---+--- 2 ---+--- 3 ---+--- 4 ---+--- 5 .......... Linear regression Number of obs = 2246 Replications = 10 Wald chi2(0) = . Prob > chi2 = . R-squared = 0.0000 Adj R-squared = 0.0000 Root MSE = 5.7555 ------------------------------------------------------------------------------ | Observed Bootstrap Normal-based wage | Coef. Std. Err. z P>|z| [95% Conf. Interval] -------------+---------------------------------------------------------------- _cons | 7.766949 .0886554 87.61 0.000 7.593188 7.94071 ------------------------------------------------------------------------------ . bstrap, reps (10): reg wage (running regress on estimation sample) Bootstrap replications (10) ----+--- 1 ---+--- 2 ---+--- 3 ---+--- 4 ---+--- 5 .......... Linear regression Number of obs = 2246 Replications = 10 Wald chi2(0) = . Prob > chi2 = . R-squared = 0.0000 Adj R-squared = 0.0000 Root MSE = 5.7555 ------------------------------------------------------------------------------ | Observed Bootstrap Normal-based wage | Coef. Std. Err. z P>|z| [95% Conf. Interval] -------------+---------------------------------------------------------------- _cons | 7.766949 .1081752 71.80 0.000 7.55493 7.978969 ------------------------------------------------------------------------------ . bstrap, reps (10): reg wage (running regress on estimation sample) Bootstrap replications (10) ----+--- 1 ---+--- 2 ---+--- 3 ---+--- 4 ---+--- 5 .......... Linear regression Number of obs = 2246 Replications = 10 Wald chi2(0) = . Prob > chi2 = . R-squared = 0.0000 Adj R-squared = 0.0000 Root MSE = 5.7555 ------------------------------------------------------------------------------ | Observed Bootstrap Normal-based wage | Coef. Std. Err. z P>|z| [95% Conf. Interval] -------------+---------------------------------------------------------------- _cons | 7.766949 .1669704 46.52 0.000 7.439693 8.094205 ------------------------------------------------------------------------------ . bstrap, reps (1000): reg wage (running regress on estimation sample) Bootstrap replications (1000) ----+--- 1 ---+--- 2 ---+--- 3 ---+--- 4 ---+--- 5 .................................................. 50 .................................................. 100 .................................................. 150 .................................................. 200 .................................................. 250 .................................................. 300 .................................................. 350 .................................................. 400 .................................................. 450 .................................................. 500 .................................................. 550 .................................................. 600 .................................................. 650 .................................................. 700 .................................................. 750 .................................................. 800 .................................................. 850 .................................................. 900 .................................................. 950 .................................................. 1000 Linear regression Number of obs = 2246 Replications = 1000 Wald chi2(0) = . Prob > chi2 = . R-squared = 0.0000 Adj R-squared = 0.0000 Root MSE = 5.7555 ------------------------------------------------------------------------------ | Observed Bootstrap Normal-based wage | Coef. Std. Err. z P>|z| [95% Conf. Interval] -------------+---------------------------------------------------------------- _cons | 7.766949 .1218539 63.74 0.000 7.52812 8.005778 ------------------------------------------------------------------------------ . bstrap, reps (1000): reg wage (running regress on estimation sample) Bootstrap replications (1000) ----+--- 1 ---+--- 2 ---+--- 3 ---+--- 4 ---+--- 5 .................................................. 50 .................................................. 100 .................................................. 150 .................................................. 200 .................................................. 250 .................................................. 300 .................................................. 350 .................................................. 400 .................................................. 450 .................................................. 500 .................................................. 550 .................................................. 600 .................................................. 650 .................................................. 700 .................................................. 750 .................................................. 800 .................................................. 850 .................................................. 900 .................................................. 950 .................................................. 1000 Linear regression Number of obs = 2246 Replications = 1000 Wald chi2(0) = . Prob > chi2 = . R-squared = 0.0000 Adj R-squared = 0.0000 Root MSE = 5.7555 ------------------------------------------------------------------------------ | Observed Bootstrap Normal-based wage | Coef. Std. Err. z P>|z| [95% Conf. Interval] -------------+---------------------------------------------------------------- _cons | 7.766949 .1220287 63.65 0.000 7.527777 8.006121 ------------------------------------------------------------------------------ . bstrap, reps (1000): reg wage (running regress on estimation sample) Bootstrap replications (1000) ----+--- 1 ---+--- 2 ---+--- 3 ---+--- 4 ---+--- 5 .................................................. 50 .................................................. 100 .................................................. 150 .................................................. 200 .................................................. 250 .................................................. 300 .................................................. 350 .................................................. 400 .................................................. 450 .................................................. 500 .................................................. 550 .................................................. 600 .................................................. 650 .................................................. 700 .................................................. 750 .................................................. 800 .................................................. 850 .................................................. 900 .................................................. 950 .................................................. 1000 Linear regression Number of obs = 2246 Replications = 1000 Wald chi2(0) = . Prob > chi2 = . R-squared = 0.0000 Adj R-squared = 0.0000 Root MSE = 5.7555 ------------------------------------------------------------------------------ | Observed Bootstrap Normal-based wage | Coef. Std. Err. z P>|z| [95% Conf. Interval] -------------+---------------------------------------------------------------- _cons | 7.766949 .1188175 65.37 0.000 7.534071 7.999827 ------------------------------------------------------------------------------ . bstrap, reps (1000) saving(bstrap, replace): reg wage (running regress on estimation sample) Bootstrap replications (1000) ----+--- 1 ---+--- 2 ---+--- 3 ---+--- 4 ---+--- 5 .................................................. 50 .................................................. 100 .................................................. 150 .................................................. 200 .................................................. 250 .................................................. 300 .................................................. 350 .................................................. 400 .................................................. 450 .................................................. 500 .................................................. 550 .................................................. 600 .................................................. 650 .................................................. 700 .................................................. 750 .................................................. 800 .................................................. 850 .................................................. 900 .................................................. 950 .................................................. 1000 Linear regression Number of obs = 2246 Replications = 1000 Wald chi2(0) = . Prob > chi2 = . R-squared = 0.0000 Adj R-squared = 0.0000 Root MSE = 5.7555 ------------------------------------------------------------------------------ | Observed Bootstrap Normal-based wage | Coef. Std. Err. z P>|z| [95% Conf. Interval] -------------+---------------------------------------------------------------- _cons | 7.766949 .1212849 64.04 0.000 7.529235 8.004663 ------------------------------------------------------------------------------ . use bstrap.dta, clear (bootstrap: regress) . codebook ------------------------------------------------------------------------------------------------------ _b_cons _b[_cons] ------------------------------------------------------------------------------------------------------ type: numeric (float) range: [7.3052673,8.1817026] units: 1.000e-07 unique values: 1000 missing .: 0/1000 mean: 7.76815 std. dev: .121285 percentiles: 10% 25% 50% 75% 90% 7.61631 7.69037 7.76364 7.8459 7.9283 . histogram _b_cons (bin=29, start=7.3052673, width=.03022191) . graph export w4_bse.png, replace (file w4_bse.png written in PNG format) . . *have a nice day . end of do-file . exit, clear