Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down at the end of May, and its replacement, statalist.org is already up and running.


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

st: STSET command causing trouble


From   Daniel Ginnerup Kappers / Region Nordjylland <d.kappers@rn.dk>
To   "'statalist@hsphsun2.harvard.edu'" <statalist@hsphsun2.harvard.edu>
Subject   st: STSET command causing trouble
Date   Thu, 9 Aug 2012 12:41:22 +0200

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

mvh
_________________________

Daniel G. Kappers

Studentermedhjælper

Tel      +4572137835/+4526748134

          +4597643563 - OBS: Nyt nummer pr. 21. August
Fax     +4572137235
Email: d.kappers@rn.dk



PSYKIATRIEN - REGION NORDJYLLAND

Aalborg Psychiatric Hospital

Aarhus University Hospital

Centre for Schizophrenia
Brandevej 5
9220 Aalborg Ø
Denmark
psykiatri.rn.dk <http://www.psykiatri.rn.dk/>


*
*   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   |   Site index