>
> 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/