[EpiData-list] Re: conditional value label look-up

epidata-list at lists.umanitoba.ca epidata-list at lists.umanitoba.ca
Sat Sep 3 03:23:29 CDT 2011


Greetings.

Is there a way to do a conditional value label look up in either the current
or in the new test version of EpiData?

For instance, if field disease equals A then field subtype has values 1,2,3
for selection, if field disease equals B then field subtype has values
4,5,6, etc.

Thank-you, and well done to the development team for excellent progress.
_______________________________________
Stephen Drew
Health Data Analyst
Region of Waterloo Public Health
Waterloo, ON

========================================================================
Thanks Stephen,
what about using the expression if:

Example for disease A
disease_A
BEFORE ENTRY
IF  disease_A = 1 or "AFP"
THEN Symptom = 1
GOTO admission
ENDIF
END
END

Next thing to be done is the following expression

 IF  disease_B = 2 or "Yellow_Fever"
THEN Symptom = 3
GOTO admission_tropic (i.e another subtype)
ENDIF
END
END
As you can see this can be very time consuming, however it could best done
at the data management stage where you could create or generate new variable
appropriately before cracking on with the analysis.

However, if you really want to proceed with: "A then field subtype has
values 1,2,3 for selection" then the other thing that you could do  would be
to assign a unique code; such as if field subtype has values 1,2,3, then
coded it 1, for value 4-7 coded it 2; this will make it easy.

I am struggling to understand why you need values 1, 2, 3 in the same field
at the same time?

Hope this helps

Best wishes

Tieble



On 1 September 2011 18:00, <epidata-list-request at lists.umanitoba.ca> wrote:

> Send EpiData-list mailing list submissions to
>        epidata-list at lists.umanitoba.ca
>
> To subscribe or unsubscribe via the World Wide Web, visit
>        http://lists.umanitoba.ca/mailman/listinfo/epidata-list
> or, via email, send a message with subject or body 'help' to
>        epidata-list-request at lists.umanitoba.ca
>
> You can reach the person managing the list at
>        epidata-list-owner at lists.umanitoba.ca
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of EpiData-list digest..."
>
>
> EpiData-list mailing list
> ___________________________________
>
> Today's Topics:
>
>   1. conditional value label look-up? (epidata-list at lists.umanitoba.ca)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Wed, 31 Aug 2011 16:30:53 -0400
> From: epidata-list at lists.umanitoba.ca
> Subject: [EpiData-list] conditional value label look-up?
> To: "'epidata-list at lists.umanitoba.ca'"
>        <epidata-list at lists.umanitoba.ca>
> Message-ID:
>        <
> 51AB587E44A99647912C34562ECADA570AF45AFBA1 at MAIL.region.waterloo.on.ca>
>
> Content-Type: text/plain; charset="us-ascii"
>
> Greetings.
>
> Is there a way to do a conditional value label look up in either the
> current or in the new test version of EpiData?
>
> For instance, if field disease equals A then field subtype has values 1,2,3
> for selection, if field disease equals B then field subtype has values
> 4,5,6, etc.
>
> Thank-you, and well done to the development team for excellent progress.
> _______________________________________
> Stephen Drew
> Health Data Analyst
> Region of Waterloo Public Health
> Waterloo, ON
>
>
>
> ------------------------------
>
> ________________________________________
> EpiData-list at lists.umanitoba.ca
> http://lists.umanitoba.ca/mailman/listinfo/epidata-list
>
>
> End of EpiData-list Digest, Vol 95, Issue 1
> *******************************************
>



-- 

<http://www.vet2011.org/calendrier3.php>http://vet2011.org
  Vet for health, Vet for food, Vet for the planet !


<http://www.mgavm.ru/>


More information about the EpiData-list mailing list