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
Missing Values GeneratedHello, I have panel data for 820 companies for 19 years i.e. 15580 observations (820*). I ran the fo…
WTP space using effect code and estimated via the command of mixlogitwtpDear Experts, I am doing a DCE study and use the command of mixlogitwtp to estimate WTP space. All …
Manually creating/editing/storing estimates for esttabI am running a series of loops that try out all combinations of Stata's new lasso functions dsregres…
Panel data Mediation modelDear all, I have a dataset with panel data from 2015-2018 My independent variable is categorical an…
Question about the command fuzzydidDear all, When I run the codes of fuzzydid help file,but I get an error.I don't know why. Code: …
Subscribe to:
Post Comments (Atom)
0 Response to Sum Data from multiple variables
Post a Comment