Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

There are two variables about graduate students time use: hrschool = average number of hours spent on school each week and hrjob = average number

There are two variables about graduate students’ time use: hrschool = average number of hours spent on school each week and hrjob = average number of hours spent on their jobs each week. (These two variables do not overlap and there are no missing data.)  You want to create a new variable hschjob, which:

= 1 if the number of hours for school and for the job are each less than or equal to 20 hours per week, 

= 2 if school is more than 20 hours but the job is 20 or less,

= 3 if school is 20 or less, but the job is over 20, and 

= 4 if both school and job are each more than 20 hours per week.  

Write Stata code to create hrschjob 

Step by Step Solution

3.49 Rating (162 Votes )

There are 3 Steps involved in it

Step: 1

Step 1 hrschool average number of hours spent on school each week hr... 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

Business Statistics

Authors: Robert A. Donnelly

2nd Edition

0321925122, 978-0321925121

More Books

Students also viewed these Computer Engineering questions

Question

Given find the value of k. es 1 e kx dx = 1 4'

Answered: 1 week ago