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
Stock volatilityHi, I need to calculate stock volatility using CRSP daily stock returns. According to the article, …
Error: cannot compute an improvement -- discontinuous region encounteredGood night, I am trying to perform a probit ordered model with panel data and the following error a…
Regression with Interaction Terms and Post-Estimation InterpretationDear Statalist community, I am running the following code to initially generate a regression output…
Survival analysis - data management queryDear all, I have two variables in my dataset namely "date of birth" "date of death" and would like …
issues with global macro windows code on macI am trying to use a Master do file that someone has sent me from their windows computer. I have a M…
Subscribe to:
Post Comments (Atom)
0 Response to Sum Data from multiple variables
Post a Comment