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
Cluster Randomized Controlled TrialI have a question about the Cluster Randomized Controlled Trial. Is it recommended to perform the sv…
Interaction between variables changes the results fundamentally!Dear All, I would appreciate your help on the following please: The correlation between y and x1 x2 …
traj command with hierarchical data structureI'm interested in using the user-written traj command (link below) to identify latent trajectories o…
Generate variables with forvalsHello Statalist, I have a dataset which contains the following variables: firm (every firm has an as…
Dipendent Double-Sorting 25 PortfoliosDear all, I am struggling to replicate the FF-25 portfolios with a variant, I should employ a depend…
Subscribe to:
Post Comments (Atom)
0 Response to Counting diseases
Post a Comment