Statalist


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: Dummy var for 2 consecutive variables


From   "Ziad El-Khatib" <[email protected]>
To   [email protected]
Subject   st: Dummy var for 2 consecutive variables
Date   Sun, 25 Nov 2007 22:40:47 -0800

Dear STATA lister
I am using cohort based dataset and trying to find a way to create
dummy variable 'var1' to code by 1 if patient score 1 at two
consecutive visits.
The intention is to use cox regression model to see when patients tend
to have outcome = 1 for var1 then.

Any tips?

Thank you and best regards
ziad
*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/



© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index