[EpiData-list] Multiple Diagnosis

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

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

More information about the EpiData-list mailing list