# Re: st: Selecting subjects

 From "Ziad El-Khatib" To statalist@hsphsun2.harvard.edu Subject Re: st: Selecting subjects Date Thu, 13 Mar 2008 14:08:47 +0200

```Dear Svend
you wrote:
> I see three possible deviations from the expected:
>
> 1. The patient did not come to an expected appointment
> 2. An unexpected visit
> 3. The patient came to an expected appointment, but not at the right
> week.

Variable 'visit' can have one of the values
0,2,4,8,12,16,20,24,36, 52 or 999

variable 'week' has the actual week number the patient came in. when
it is unscheduled visit then visit will be 999 and the week will have
the actual number.

Some patients could have come on scheduled and unscheduled visits.
i am interested in knowing
1. which patients came on all the scheduled visits (it does not
matter if they came in between visits or not)
2. which patients missed scheduled visits (i.e. they did not come on
the shceduled and on unscheduled ones)
3. which patients missed scheduled visits but they came on unscheduled ones?

was it clear or am i making it more complicated?

note: I am using your book, great one!!

Thank you and best regards

>
> It is not quite clear what you want; please be more specific. It would
> help if you show a short example.
>
> Svend

On 3/13/08, Svend Juul <SJ@soci.au.dk> wrote:
>
> I have cohort followed over 12 months. Time points have 2 variables:
>   visit: coded after the number of weeks on treatmnet:
> 0,2,4,8,12,16,20,24,36 & 52 (patients expected to come on these weeks)
> otherwise coded 999 if unexpected visit.
>   week: showing the exact week number patient came to clinic.
>
> I am trying to generate variable with value=1 to select patients who
> came at all visits (mentioned above), with intention to identify
> patients who did not come to the expected appointments.
>
> =============================================================
>
> I see three possible deviations from the expected:
>
> 1. The patient did not come to an expected appointment
> 2. An unexpected visit
> 3. The patient came to an expected appointment, but not at the right
> week.
>
> It is not quite clear what you want; please be more specific. It would
> help if you show a short example.
>
> Svend
>
> __________________________________________
>
> Svend Juul
> Institut for Folkesundhed, Afdeling for Epidemiologi
> (Institute of Public Health, Department of Epidemiology)
> Vennelyst Boulevard 6
> DK-8000  Aarhus C, Denmark
> Phone:  +45 8942 6090
> Home:   +45 8693 7796
> Email:  sj@soci.au.dk
> __________________________________________
>
>
> *
> *   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/
>

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