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
Step 1 hrschool average number of hours spent on school each week hr... View full answer
Get step-by-step solutions from verified subject matter experts
