Hello,
I wanted to create an indicator variable combining two or more categorical variable. So for one of my variables i want to combine the variable gender (female=1 and male=0) and race (white=1, black=2, Hispanic=3 and other=4) to create 12 variables. Generally, when i create indicator variables using one categorical variable, i usually do one of the three options: manually generate variable or tabulate with generate ( ) or make a loop with the generate command. I tried to do this using 2 variables using the second or third method, but i kept getting an error from STATA. Is there an easy way to generate indicator variables using 2 or more categorical variables?
Related Posts with Creating indicator variables from multiple categorical variable
Synth: How to save and further process the results (matrices)?Hello together. I come up with a new beginner question and hope for your ideas / advise / support. …
Stata Journal, cumulative author indexThe cumulative author index for vol. 1-19 of the Stata Journal is now available from RePEc services …
Transpose Data from Wide to LongHello, I am interested in making a basic transposition of my data so that the columns becomes the ro…
Cross sectional regression modified Jones and estimates of coefficientDear Statalisters, I would much appreciate your help with the following problem, i have to run a m…
Interpretation of Stata tablePlease could someone explain this simple stata table? Many Thanks in advance. table SALARY, con (me…
Subscribe to:
Post Comments (Atom)
0 Response to Creating indicator variables from multiple categorical variable
Post a Comment