Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

QUESTION 1 Here is code to import and clean the cps data. D % filter (YEAR>=2014, YEAR % mutate (EARNWEEK UHRSWORKT = = na

image text in transcribedimage text in transcribed

QUESTION 1 Here is code to import and clean the cps data. D % filter (YEAR>=2014, YEAR % mutate (EARNWEEK UHRSWORKT = = na if(EARNWEEK, 9999.99), na_if (na_if(na_if (UHRSWORKT, 999),997),0), HOURWAGE =na_if (HOURWAGE, 999.99)) %>% mutate (Wage case when (PAIDHOUR==1 2 EARNWEEK/UHRSWORKT, PAIDHOUR==2 mutate (kids = NCHILD>0, female = SEX==2) %>% filter(!is.na (Wage)) EDIT this code to also include only individuals who are younger than 40. QUESTION 2 Estimate the model: = log(W) BoFn 2 HOURWAGE)) %> where W is the wage and F a dummy variable that is equal to one if the individual is female. QUESTION 3 Now calculate the difference between the sample mean of log wages for women and the sample mean for men. What do you notice? Explain why. QUESTION 4 Write down a linear model that allows for wage gaps to be different by the individual's fertility status. QUESTION 5 Suppose that the null hypothesis is that wage gaps are the same for each fertility status. Write this null hypothesis in terms of the parameters of your model. QUESTION 6 Test the null hypothesis against a two-sided alternative. Make your test size 5%. QUESTION 7 Re-write the model to allow for: (1) A linear trend for all wages with age; (2) A linear trend for wage gaps with age; AND (3) A linear trend for the the difference in wage gaps by fertility status. Use this model to test the null hypothesis that the difference in wage gaps by fertility status does not change with age. Use a two-sided alternative with size 10%.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Managerial Economics and Business Strategy

Authors: Michael R. baye

7th Edition

978-0073375960, 71267441, 73375969, 978-0071267441

More Books

Students also viewed these Economics questions