Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Generate a new variable equal to the natural logarithm of variable wage, and call this new variable lwage. What is the sample mean log-wage (lwage)

Generate a new variable equal to the natural logarithm of variable wage, and call this new variable lwage. What is the sample mean log-wage (lwage) for nonblack men? for black men? Hint 1: You did something like this in the first problem set. To generate variable lwage type the following command in Stata: gen lwage = log(wage). To obtain the sample mean log wages for black and nonblack men type, use the Stata "sum" command along with an "if" condition, once for black men, and a second time for nonblack men. For black men, the command is: sum var1 if var2==1, where var1 is lwage and var2 is black. For nonblack men, the command is: sum var1 if var2==0, where var1 is lwage and var2 is black. Hint 2: A faster way to do it is to type: tab black, sum(lwage)

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_2

Step: 3

blur-text-image_3

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

The Routledge To Global Political Economy Conversations And Inquiries

Authors: Ernesto Vivares

1st Edition

1351064525, 9781351064521

More Books

Students also viewed these Economics questions

Question

=+a) Comparing the ratings of a new telephone set on a

Answered: 1 week ago

Question

6. How can hidden knowledge guide our actions?

Answered: 1 week ago