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: RE: Survival analysis: excluding patients entering risk set after a specific date
From
"Kieran McCaul" <[email protected]>
To
<[email protected]>
Subject
st: RE: Survival analysis: excluding patients entering risk set after a specific date
Date
Fri, 26 Nov 2010 05:37:27 +0800
....
Why not recode inout to 3 if insertion occurs after 1jan2007 and then specify exit(inout==3)
-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of paul o'brien
Sent: Thursday, 25 November 2010 4:07 PM
To: statalist
Subject: st: Survival analysis: excluding patients entering risk set after a specific date
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/
*
* 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/