Question: 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

1 Expert Approved Answer
Step: 1 Unlock

Step 1 hrschool average number of hours spent on school each week hr... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Computer Engineering Questions!