Hi all
I want help in generating all the possible combinations using 20 variables(diseases) in STATA.
I want combinations of three variables. How will I do that?
These variables are binary in nature.
For example, I want to have a combination like c1+c2+c3 and if this adds to 3 then assign yes(=1) for this new variable of the combination
Please help.
Related Posts with Generating Disease Combinations
Merge not matching for one year for a specific variable unrelated to the mergeI am looking at data on recycling and compost rates and have merged this data with recycling and was…
Difference-in-difference model with continuous treatment levelsHi all, For my master thesis I have to calculate the effect of CSR investment on various performanc…
Reshape Long to Wide to create dummy variablesI currently have data that looks like this: a X 0 a Y 0 a Y 1 b X 0 b Y 0 b Z 1 c X 1 c Y 1 c Z 0 …
Predictors of improvement over timeDear statalist members, I would like to model predictors of improvement in a binary variable over t…
Aggregating individual-level data to studysite-level dataDear all, I am still very new to Stata and would need your help with the following: I am currently …
Subscribe to:
Post Comments (Atom)
0 Response to Generating Disease Combinations
Post a Comment