Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at

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

Re: st: STSET command causing trouble

From   Steve Samuels <>
Subject   Re: st: STSET command causing trouble
Date   Thu, 9 Aug 2012 17:10:20 -0400

My best advice at this time: read the first part of section 3.3 of the Statalist FAQ.


On Aug 9, 2012, at 6:41 AM, Daniel Ginnerup Kappers / Region Nordjylland wrote:

Hello Statalist.

I am having trouble using the stset command for my intended purpose.

What i need to do is to count whether each observation has a failure. This i have succeeded in, and got the right number (1510). But my problem is that: When a failure is registered, the observation is censored, and therefor it doesnt keep counting the time elapsed for those observations, which i need it to do. Because i would like to see the number of observationyears in total, i have a variable called "enddate" which i have tried to set as "exit(time enddate)" but it still censors the observations that are getting a failure registration.

I hope that you can help, and that this is enough information


Daniel G. Kappers


Tel      +4572137835/+4526748134

         +4597643563 - OBS: Nyt nummer pr. 21. August
Fax     +4572137235


Aalborg Psychiatric Hospital

Aarhus University Hospital

Centre for Schizophrenia
Brandevej 5
9220 Aalborg Ø
Denmark <>

*   For searches and help try:

*   For searches and help try:

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