Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.


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

Re: st: how to code for a 5-hour delay


From   Sergiy Radyakin <[email protected]>
To   "[email protected]" <[email protected]>
Subject   Re: st: how to code for a 5-hour delay
Date   Mon, 10 Feb 2014 15:06:15 -0500

See Nick's answer and an example here:
do http://radyakin.org/statalist/2014/20140210_1459.do
Note that it is important to generate variables as doubles, when it
gets to time measured in milliseconds!
Best, Sergiy

On Mon, Feb 10, 2014 at 11:19 AM, Dao Kim <[email protected]> wrote:
> Hi, I need help to write a command to select patient that received a drug in the 5 hours following the first one. I have time1 (1st drug administration) and time2 (2nd drug administration). I created a cat with delay (time2-time1), which has the 1 jan 1960, I don't really know how to change that, still it's not the matter. I would like to keep only the patients for how delay is < or = to 5 hours, should I write 5 hrs in a SIF time? How do I convert? Didn't work so far. Thanks for your help. Kim
> *
> *   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/

*
*   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–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index