Hi guys, I have a group variable (GROUPS8) and I want to generate two new variables from it- Caste and Religion. For religion, I want to use the first 5 to make a group Hindu taking value 1, Muslim taking value 2, and others taking value 3.
HH3 1.13-15 |
Caste/relig |
ion 8cats | Freq. Percent Cum.
------------+-----------------------------------
Brahmin-1 | 12,108 5.61 5.61
High caste-2 | 35,531 16.47 22.08
OBC-3 | 72,900 33.79 55.87
Dalit-4 | 43,270 20.06 75.92
Adivasi-5 | 17,405 8.07 83.99
Muslim-6 | 27,661 12.82 96.81
Sikh, Jain-7 | 3,672 1.70 98.51
Christian-8 | 3,207 1.49 100.00
------------+-----------------------------------
Total | 215,754 100.00
Related Posts with How to generate two variables from a variable?
Indicator variables with an IV (2sls) regressionHello, I am working on a project right now where I have delta_u as the dependent variable (it is the…
Reshaping data from Time series form to a PanelHi, I have the following numbers (I have data on 150 such countries). I want to convert this data i…
replacing values of a newly generated variable by the values of previous variables using "foreach var of varlist"Hi everyone, Using the below codes, I am trying to generate a new variable (long_X6 to long_X13) and…
MV Probit Modelplease, suggest steps for the MV Probit model . Thank you . …
Remove time in datetime variableI have a variable in an imported dataset from Excel in this type and format: type: double format: %t…
Subscribe to:
Post Comments (Atom)
0 Response to How to generate two variables from a variable?
Post a Comment