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.
Import CSV datesI am completely new to Stata. I have imported a dataset of approximately 50 columns by 500,000 rows.…
5 * 5 regression results in one tableDear all, I would like to prepare a large table that contains the main coefficient of 25 regression…
Omitted period dummies in GMM xtabond2 When reproducing this code to explain the growth relationship, it drops both period 1 and period 4…
Retrieving values from output with missing matrix r(table)Hello to all! I'm working with some income data with the DASP package for Stata and running a calcu…
using local as range in for valuesHi Statalist I would like to run a loop for every value within a variable called "spell_count", and…
Subscribe to:
Post Comments (Atom)
0 Response to Creating a Complicated Variable.
Post a Comment