Statalist


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

st: Dropping observation after it has 'failed'


From   Anders Ryom Villadsen <avilladsen@econ.dk>
To   statalist@hsphsun2.harvard.edu
Subject   st: Dropping observation after it has 'failed'
Date   Mon, 13 Oct 2008 16:13:37 +0200

Dear all,
I'm a relatively new Stata user doing discrete event history models with two questions regarding data handling. I have browsed manuals and the list archive but cannot seem to find an answer to my questions that works.
My data looks like this.

id  time  event  indep1 .....
1    1       0        1
1    2       0        0
1    3       1        0
1 4 0 0 etc.....

1) How do I drop the observation for time 4 (after org1 has 'failed') and it should no longer be part of my cloglog or logit models? 2) I want my indep var to work for two periods. How do I do that without making it work for period 3?

Best regards,

Anders
*
*   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–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index