Hello,
I'm trying to create a new variable that is equal to the sum of several other variables. The several variables I need to sum are each 0,1 dichotomous variables (yes/no) and each correspond to a different event. They each ask whether the respondent received medical treatment following the event. I'm trying to create a variable that shows how many respondents received medical treatment within my sample, among all events. I had previously generated a variable that showed individuals who received "any" medical treatment, but that would only count each respondent once even if they reported Yes to receiving medical treatment following more than one event.
If there is a straightforward way to do this, please let me know!
Related Posts with Sum Data from multiple variables
Standardizing an interaction termI would like to enter an interaction term into my regression using standardized variables. I am gene…
Question about xtdpdsys: Using Sargan test with T=3 wavesHello, Long time reader, first-time poster. My co-author and I are using xtdpdsys with balanced pa…
Understanding ATET in Stata teffects with multivalued treatmentThere is something in https://www.stata.com/manuals13/tete...ultivalued.pdf that I simply don't foll…
Manually created interaction term and ## commandHi, this is my first time using Stata. I would like to include an interaction term in my model: Co…
predicted survival with stcurveI am fitting a conditional risk model which is usually stratified by order of event and can't produc…
Subscribe to:
Post Comments (Atom)
0 Response to Sum Data from multiple variables
Post a Comment