------------------------------------------------------------------------------------ name: log: C:\Users\daltonc\Desktop\Tina\Metrics\datasets\class_4_2_storytelling.l > og log type: text opened on: 2 Apr 2015, 11:04:38 . use "C:\Users\daltonc\Desktop\Tina\Metrics\datasets\birthweight_smoking.dta", clea > r . describe Contains data from C:\Users\daltonc\Desktop\Tina\Metrics\datasets\birthweight_smokin > g.dta obs: 3,000 vars: 12 15 Jun 2014 11:19 size: 90,000 ------------------------------------------------------------------------------------ storage display value variable name type format label variable label ------------------------------------------------------------------------------------ nprevist byte %9.0g alcohol byte %9.0g tripre1 byte %9.0g tripre2 byte %9.0g tripre3 byte %9.0g tripre0 byte %9.0g birthweight float %9.0g smoker float %9.0g unmarried float %9.0g educ float %9.0g age float %9.0g drinks float %9.0g ------------------------------------------------------------------------------------ Sorted by: . gen lnnprevist= ln(nprevist) (30 missing values generated) . regress birthweight lnnprevist smoker alcohol Source | SS df MS Number of obs = 2970 -------------+------------------------------ F( 3, 2966) = 72.14 Model | 69078056.8 3 23026018.9 Prob > F = 0.0000 Residual | 946724027 2966 319192.187 R-squared = 0.0680 -------------+------------------------------ Adj R-squared = 0.0671 Total | 1.0158e+09 2969 342136.101 Root MSE = 564.97 ------------------------------------------------------------------------------ birthweight | Coef. Std. Err. t P>|t| [95% Conf. Interval] -------------+---------------------------------------------------------------- lnnprevist | 287.3661 25.1069 11.45 0.000 238.1374 336.5948 smoker | -209.4417 26.6622 -7.86 0.000 -261.72 -157.1634 alcohol | 11.1688 78.03684 0.14 0.886 -141.843 164.1806 _cons | 2757.791 60.44296 45.63 0.000 2639.277 2876.306 ------------------------------------------------------------------------------ . tab smoker smoker | Freq. Percent Cum. ------------+----------------------------------- 0 | 2,418 80.60 80.60 1 | 582 19.40 100.00 ------------+----------------------------------- Total | 3,000 100.00 . regress birthweight lnnprevist smoker drinks unmarried Source | SS df MS Number of obs = 2970 -------------+------------------------------ F( 4, 2965) = 64.69 Model | 81539399.8 4 20384850 Prob > F = 0.0000 Residual | 934262684 2965 315097.027 R-squared = 0.0803 -------------+------------------------------ Adj R-squared = 0.0790 Total | 1.0158e+09 2969 342136.101 Root MSE = 561.34 ------------------------------------------------------------------------------ birthweight | Coef. Std. Err. t P>|t| [95% Conf. Interval] -------------+---------------------------------------------------------------- lnnprevist | 253.5932 25.57525 9.92 0.000 203.4462 303.7403 smoker | -172.9648 27.04816 -6.39 0.000 -225.9999 -119.9297 drinks | 4.534474 15.1444 0.30 0.765 -25.16013 34.22908 unmarried | -164.3562 26.13851 -6.29 0.000 -215.6077 -113.1048 _cons | 2866.138 62.63259 45.76 0.000 2743.33 2988.945 ------------------------------------------------------------------------------ . regress birthweight tripre1 tripre2 tripre3 tripre0 note: tripre3 omitted because of collinearity Source | SS df MS Number of obs = 3000 -------------+------------------------------ F( 3, 2996) = 23.97 Model | 24644860.4 3 8214953.45 Prob > F = 0.0000 Residual | 1.0270e+09 2996 342782.091 R-squared = 0.0234 -------------+------------------------------ Adj R-squared = 0.0225 Total | 1.0516e+09 2999 350656.887 Root MSE = 585.48 ------------------------------------------------------------------------------ birthweight | Coef. Std. Err. t P>|t| [95% Conf. Interval] -------------+---------------------------------------------------------------- tripre1 | 181.8652 60.03799 3.03 0.002 64.14536 299.5851 tripre2 | 56.07863 64.87871 0.86 0.387 -71.1327 183.29 tripre3 | 0 (omitted) tripre0 | -578.5192 122.0185 -4.74 0.000 -817.7677 -339.2707 _cons | 3233.919 58.84255 54.96 0.000 3118.543 3349.295 ------------------------------------------------------------------------------ . log close name: log: C:\Users\daltonc\Desktop\Tina\Metrics\datasets\class_4_2_storytelling.l > og log type: text closed on: 2 Apr 2015, 12:02:27 ------------------------------------------------------------------------------------