---------------------------------------------------------------------------------------------------------------------
      name:  <unnamed>
       log:  /Users/rx59/Library/CloudStorage/Box-Box/322/Spring 2025/Problem Sets/PS3/PS3_Stata.log
  log type:  text
 opened on:  10 Mar 2025, 15:46:41

. 
. clear all

. * load data for Q1
. use mroz

. 
. // 1(a)
. sum inlf

    Variable |        Obs        Mean    Std. dev.       Min        Max
-------------+---------------------------------------------------------
        inlf |        753    .5683931    .4956295          0          1

. sum inlf if exper>=12

    Variable |        Obs        Mean    Std. dev.       Min        Max
-------------+---------------------------------------------------------
        inlf |        286    .7552448    .4306956          0          1

. 
. // 1(b)
. tab inlf kidslt6, col

+-------------------+
| Key               |
|-------------------|
|     frequency     |
| column percentage |
+-------------------+

  =1 if in |
 lab frce, |              # kids < 6 years
      1975 |         0          1          2          3 |     Total
-----------+--------------------------------------------+----------
         0 |       231         72         19          3 |       325 
           |     38.12      61.02      73.08     100.00 |     43.16 
-----------+--------------------------------------------+----------
         1 |       375         46          7          0 |       428 
           |     61.88      38.98      26.92       0.00 |     56.84 
-----------+--------------------------------------------+----------
     Total |       606        118         26          3 |       753 
           |    100.00     100.00     100.00     100.00 |    100.00 

. 
. // 1(c)
. gen kids = 0

. replace kids = 1 if (kidslt6>0) | (kidsge6>0)
(524 real changes made)

. sum kids

    Variable |        Obs        Mean    Std. dev.       Min        Max
-------------+---------------------------------------------------------
        kids |        753    .6958831    .4603382          0          1

. 
. clear all

. * load data for Q3
. use beauty

. 
. // 3(a)
. reg lwage educ

      Source |       SS           df       MS      Number of obs   =     1,260
-------------+----------------------------------   F(1, 1258)      =     95.89
       Model |  31.5149966         1  31.5149966   Prob > F        =    0.0000
    Residual |  413.464976     1,258  .328668502   R-squared       =    0.0708
-------------+----------------------------------   Adj R-squared   =    0.0701
       Total |  444.979972     1,259  .353439215   Root MSE        =     .5733

------------------------------------------------------------------------------
       lwage | Coefficient  Std. err.      t    P>|t|     [95% conf. interval]
-------------+----------------------------------------------------------------
        educ |   .0602839   .0061563     9.79   0.000     .0482061    .0723616
       _cons |   .9014239   .0790132    11.41   0.000     .7464117    1.056436
------------------------------------------------------------------------------

. 
. // 3(b)
. egen meaneduc=mean(educ)

. gen demeaneduc=educ-meaneduc

. reg lwage demeaneduc

      Source |       SS           df       MS      Number of obs   =     1,260
-------------+----------------------------------   F(1, 1258)      =     95.89
       Model |  31.5149966         1  31.5149966   Prob > F        =    0.0000
    Residual |  413.464976     1,258  .328668502   R-squared       =    0.0708
-------------+----------------------------------   Adj R-squared   =    0.0701
       Total |  444.979972     1,259  .353439215   Root MSE        =     .5733

------------------------------------------------------------------------------
       lwage | Coefficient  Std. err.      t    P>|t|     [95% conf. interval]
-------------+----------------------------------------------------------------
  demeaneduc |   .0602839   .0061563     9.79   0.000     .0482061    .0723616
       _cons |     1.6588   .0161508   102.71   0.000     1.627114    1.690485
------------------------------------------------------------------------------

. 
. log close
      name:  <unnamed>
       log:  /Users/rx59/Library/CloudStorage/Box-Box/322/Spring 2025/Problem Sets/PS3/PS3_Stata.log
  log type:  text
 closed on:  10 Mar 2025, 15:46:41
---------------------------------------------------------------------------------------------------------------------
