Statalist The Stata Listserver


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

Re: st: separating string of fixed length into sections


From   Maarten buis <[email protected]>
To   [email protected]
Subject   Re: st: separating string of fixed length into sections
Date   Sat, 30 Dec 2006 18:58:26 +0000 (GMT)

--- Michael McCulloch <[email protected]> wrote:
> . gen edate = mdy(dxmo, dxda, dxyr)
> (667 missing values generated)
> 
> 1. How can I locate & list those missing values?

list [whatever variables you like] if missing(edate)

> 2. How should I deal with those before -stset- and -stcox-?

that depends on whether these times are truely missing or right
sensored. 

If they are censored that you should replace them with the time of
censoring (usualy, but not always, the date that the datacollecting
stoped) and create a second variable (usualy and morbidly called died)
that is 1 if you saw the event happining and zero if it is censored.

If they are truely missing than I guess you don't have to do anything
if you are happy with complete cases analysis. Well at least cc
analysis is good for the phase when you are getting your data in order,
and for a first analysis. Later you might want to look in on -ice-, see
-findit ice-.

hope this helps,
Maarten

-----------------------------------------
Maarten L. Buis
Department of Social Research Methodology
Vrije Universiteit Amsterdam
Boelelaan 1081
1081 HV Amsterdam
The Netherlands

visiting address:
Buitenveldertselaan 3 (Metropolitan), room Z434

+31 20 5986715

http://home.fsw.vu.nl/m.buis/
-----------------------------------------

Send instant messages to your online friends http://uk.messenger.yahoo.com 
*
*   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