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?
How to replace each variable with values of subsquent observationHi all, I've got a question regarding replacing values of variables with values from subsequent obs…
Double-cluster pooled OLSGood day to all. Is there any researcher know how to interpret the double-clustering pooled OLS? My …
COVID-19 symptoms graphic I was asked off-forum by someone in the medical field if I knew of how to create the graphic below.…
Splitting dataHi, I have a data set on mortgage lending for single family homes and I have a total of 10,000 obser…
Fixed effects model: how do I take account of non-uniform time intervals?Good morning all, Hope you're well. Apologies if this is a very basic enquiry but I am still findin…
Subscribe to:
Post Comments (Atom)
0 Response to How to generate two variables from a variable?
Post a Comment