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]

st: Survival analysis: excluding patients entering risk set after a specific date


From   "paul o'brien" <[email protected]>
To   statalist <[email protected]>
Subject   st: Survival analysis: excluding patients entering risk set after a specific date
Date   Thu, 25 Nov 2010 08:07:13 +0000

dear all,

i want to exclude from the risk set patients who have a intra-uterine
device inserted after 1st Jan 2007, but continue counting failures
(removals) for earlier insertions to the present.

using before(exp) does not work for me.

stset date, id( patient_id) enter(inout=1) origin(inout=1 time
date+21) failure(inout==2)  before(d(1jan2007))

thanks,

paul

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


© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index