Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down on April 23, and its replacement, statalist.org is already up and running.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

st: Number of people present by date and time


From   Simon <scmoore.lists@googlemail.com>
To   statalist@hsphsun2.harvard.edu
Subject   st: Number of people present by date and time
Date   Thu, 29 Nov 2012 13:35:09 +0000


Dear Statalist,

This is quite possible a rather naive question, but for some reason I am
stuck.

I have data from a clinic. I have the time each patient checks in
(arrdatetime), the time they leave (depdatetime) and the time taken to
first consultation (waittime) in minutes. What I would like to do is
compare the number of people in the clinic for each patient at
arrdatetime with waittime.

So far the best I can come up with is to write a loop, going through
every patients' arrdatetime and counting up those whose arrival and
departure times span this value. But I have rather a lot of data and
this seems terribly inefficient.

Simon
*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/faqs/resources/statalist-faq/
*   http://www.ats.ucla.edu/stat/stata/


© Copyright 1996–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index