Hello everyone,
I have a dataset with variables that describe the time spent on different activities: e.g. activity 1 starts at 7:15am and finishes at 9:00am. The trouble is, the hours and the minutes of each start and end time are listed in separate columns: so the 'hours' are in one column and the 'minutes' are in the next column. My end goal is to create a variable that describes the duration spent on each activity but I am guessing that I first need to create a variable that combines hours and minutes in one column? I am not having much luck searching youtube and stata's help function - can anyone please help me out with the syntax for creating these variables?
Thanks in advance!
I have a dataset with variables that describe the time spent on different activities: e.g. activity 1 starts at 7:15am and finishes at 9:00am. The trouble is, the hours and the minutes of each start and end time are listed in separate columns: so the 'hours' are in one column and the 'minutes' are in the next column. My end goal is to create a variable that describes the duration spent on each activity but I am guessing that I first need to create a variable that combines hours and minutes in one column? I am not having much luck searching youtube and stata's help function - can anyone please help me out with the syntax for creating these variables?
Thanks in advance!
Comment