Hello all,
I have 7 variable all coded 0 = no and 1 = yes. (nothing else). All variables ask if you are in a certain club. I want to create a variable that includes all 7 variables. The new variable says 0= no if you are in NONE of the clubs, but if you are in any of the 7 clubs (even just 1) you would be coded as 1 = yes. Any ideas on how this would be possible? I include a screenshot of one of the 7 variables below. All help would be extremely appreciated!!
Related Posts with Creating a Complicated Variable.
Labelling groupsCan someone please tell me why this is an invalid syntax and I can't label my age groups please? ge…
Comparing dates in 2 variables and 2 observationsHello, Beginner Stata user here. So I have two date variables in 13Nov2019 type format, which are a…
Paired or Unpaired t test for Panel dataHi Dear, If we have to run t tests of two groups of countries. Both groups of countries consist of …
Converting string values to numericI would appreciate a hand with concise code to convert variable values that are listed alphabeticall…
T test between coefficients in categorical variablesHello there, my regression is: WageHour Var1##Var2 I want to check all the p-values between the…
Subscribe to:
Post Comments (Atom)
0 Response to Creating a Complicated Variable.
Post a Comment