Statalist


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

RE: st: Efficiently run three loops (or do without them)


From   Roy Wada <[email protected]>
To   <[email protected]>
Subject   RE: st: Efficiently run three loops (or do without them)
Date   Mon, 13 Apr 2009 11:46:40 -0700

>
> By way of a brief background, I am running this on a number of data 
> sets with the aim of listing the suspect cases in a way that allows
> us to easily go back to the questionnaires to check that the
> listed value is indeed a valid entry. I would therefore want to be 
> able to see the actual values of fup_pdt and fup_unit

You don't really need a loop. You may not even need a full program.
 
gen check=1 if fup_pdt>`x' | fup_unit=`Y' | fup_qtycoll`x' & fup_unit=`Y' & fup_qtycoll
_________________________________________________________________
Rediscover Hotmail®: Get quick friend updates right in your inbox. 
http://windowslive.com/RediscoverHotmail?ocid=TXT_TAGLM_WL_HM_Rediscover_Updates1_042009
*
*   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–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index