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
Help needed to adjust the outcome of bysort commandDear Stata community members, I have created a count variable k and p based on the following syntax…
Tabout Error - Conformability r(3200) Hello I am using running a series of crosstab tables using the following tabout command: Code: t…
Generating summary statistics and exporting to excelI have a table that looks like this: Country Name Country Code Series Name Series Code 2016 [YR20…
Can I select Fixed-effects model?Dear, First of all, I really thank you everyone here sparing their efforts to help the person like …
Calculating effect sizes after MI and mixedHello All, I hope this message finds you well! After running the following code is there a way to …
Subscribe to:
Post Comments (Atom)
0 Response to Counting diseases
Post a Comment