I have a variable for the time of day at which the first patient arrived to a clinic, which is formatted as hh:mm:ss.
I wish to do two analyses of these data.
1) To calculate the median time of day at which the first attendee arrived. Obviously using "summ var, det" doesn't produce anything meaningful given how Stata handles time as a number (-1.89e+12 is what is produced) and wonder how this could be readily converted into a meaningful value of time.
2) I wish to plot a histogram with the time of day on this x axis and frequency on the y axis. However, the cut-offs for the times on the x axis are somewhat random times (e.g. 0713am) whereas it would be easier to interpret if this was evenly split between 0630 and 0930 as half an hour intervals.
Many thanks.
I wish to do two analyses of these data.
1) To calculate the median time of day at which the first attendee arrived. Obviously using "summ var, det" doesn't produce anything meaningful given how Stata handles time as a number (-1.89e+12 is what is produced) and wonder how this could be readily converted into a meaningful value of time.
2) I wish to plot a histogram with the time of day on this x axis and frequency on the y axis. However, the cut-offs for the times on the x axis are somewhat random times (e.g. 0713am) whereas it would be easier to interpret if this was evenly split between 0630 and 0930 as half an hour intervals.
Many thanks.
Comment