Hi dear Statalist:
I have a question. My dataset has 6764 subjects, from them 4142 have any disease; I have around 124 variables, and 42 variables that are each disease as dummy, for example cancer (0= no, 1=yes), arthritis (0= no, 1=yes) . The diseases are not exclusive. I would like to have a count of frequency of diseases by person. Example:
1 disease: 500 persons
2 diseases: 475 persons
3 diseases: 234 persons
Is there any way to count of the 42 diseases variables that are within the 142 variables? And to count the freqcuency of number of diseases in the dummy variables?
Best regards,
Related Posts with Counting diseases
Summing across variables with conditionsHello, I am working with a data set where the variables represent questions from a survey that used…
🗎 Temporary file with -tempfile-Dear All, I am looking for a way to make use of temporary files with the putpdf image command. Unfo…
synth_runner's CIsHi everyone, Is there a way to graph confidence intervals when using synth_runner? (to put it around…
Census data use of weights and survey-designHi! I am using Mexico 2010 census data to do an individual-level analysis. Upon reading the availa…
Restricting Loop to Observation NumberI wish to create a variable that looks something like 1994M1, 1994M2.....1994M12 to indicate the mon…
Subscribe to:
Post Comments (Atom)
0 Response to Counting diseases
Post a Comment