Question
summarize Variable | Obs Mean Std. dev. Min Max -------------+--------------------------------------------------------- educ | 1,084 12.77399 2.705561 1 18 south | 1,084 .2942804 .455929 0 1 nonwhite
summarize
Variable | Obs Mean Std. dev. Min Max -------------+--------------------------------------------------------- educ | 1,084 12.77399 2.705561 1 18 south | 1,084 .2942804 .455929 0 1 nonwhite | 1,084 .1143911 .3184326 0 1 female | 1,084 .4169742 .4932861 0 1 married | 1,084 .654059 .4758936 0 1 -------------+--------------------------------------------------------- exper | 1,084 18.27675 12.88119 0 55 expersq | 1,084 499.8118 599.3249 0 3025 union | 1,084 .2435424 .4294178 0 1 lwage | 1,084 1.867301 .5428042 -.47 3.7955 age | 1,084 36.53967 12.20392 18 64 -------------+--------------------------------------------------------- year | 1,084 81.44834 3.501234 78 85 y85 | 1,084 .4926199 .5001763 0 1 y85fem | 1,084 .2260148 .4184419 0 1 y85educ | 1,084 6.413284 6.765212 0 18 y85union | 1,084 .0885609 .28424 0 1
Here is the summary of the data. For #4 and #5, what code do I need to use?
Exercise 2. Complete the following exercise using Stata. Turn in the Stata log file together with your solutions. This is a case where you may turn in copies of the same Stata log file if you work with a classmate. (i) Load the data set cps78_85.dta. (ii) Summarize the data. (iii) This data set has log-wage rather than wage. Construct the wage using gen wage=exp (lwage) (iv) Produce an estimate of the conditional expectation of wages conditional on year. (v) Produce an estimate of the expectations of wages conditional on gender and marital status. That is the expected wage for married men, married women, unmarried men, and unmarried women. Exercise 2. Complete the following exercise using Stata. Turn in the Stata log file together with your solutions. This is a case where you may turn in copies of the same Stata log file if you work with a classmate. (i) Load the data set cps78_85.dta. (ii) Summarize the data. (iii) This data set has log-wage rather than wage. Construct the wage using gen wage=exp (lwage) (iv) Produce an estimate of the conditional expectation of wages conditional on year. (v) Produce an estimate of the expectations of wages conditional on gender and marital status. That is the expected wage for married men, married women, unmarried men, and unmarried womenStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started