Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.
From | "paul o'brien" <paul.obrien@afe2.org.uk> |
To | statalist <statalist@hsphsun2.harvard.edu> |
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/