[EpiData-list] Multiple Diagnosis

EpiData development and support epidata-list at lists.umanitoba.ca
Sat Nov 25 09:26:31 CST 2017

To see the combinations you may supplement Jamie's suggestion with this

Define alldiag _________.... Make 80 underscores

Alldiag = diag1 + diag2 + etc.

Freq alldiag

Best wishes 
Jens Lauritsen 

Den 25. november 2017 16.16.33 CET, EpiData development and support <epidata-list at lists.umanitoba.ca> skrev:
>You can create new, temporary files with the values for each ‘diag’ as
>a new variable like this:
>* EpiData Analysis V2.2 syntax!
>* adiag will hold all diagnoses eventually
>define adiag ####
>* get all first diagnoses
>adiag = diag
>* save all records with non-missing diag1
>select adiag <> .
>savedata diag1.rec /replace
>* save all records with non-missing diag2
>adiag = diag2
>select adiag <> .
>savedata diag2.rec /replace
>>savedata diag6.rec /replace
>* read / append all temporary files
>read "diag1.rec”
>append /file="diag2.rec”
>>append /file="diag6.rec”
>* get overall frequencies
>freq adiag
>> On Nov 25, 2017, at 07:18, EpiData development and support
><epidata-list at lists.umanitoba.ca> wrote:
>> Dear Epidata Team,                   
>> We have a patients database. A patient can have multiple diagnosis. 
>> Hence these are the numerically coded variables defined for dataentry
>> Diag, Diag2, Diag3, Diag4, Diag5, Diag6. 
>> Of course one can FREQ the Individual 'diag'; 
>> and see the individual diagnosis pattern. 
>> However if one wants to see the pattern of common diagnostic
>combinations observed in
>> all the patients, is there any way out?  
>> Dr. Shavinder Singh
>> _______________________________________________
>> EpiData-list mailing list
>> EpiData-list at lists.umanitoba.ca
>> http://lists.umanitoba.ca/mailman/listinfo/epidata-list
>EpiData-list mailing list
>EpiData-list at lists.umanitoba.ca

Dette er sendt fra min mobiltelefon. Undskyld at jeg fatter mig i korthed.

More information about the EpiData-list mailing list