Dear All,
I would like to create a variable for total number of male birth and total number of female birhts.
In this data set, females are coded as 2 while males are coded as 1.
I would like to create a variable, let's say X, that indicates the total number of female births.
For example, X should be 1 for caseid 010110004 02; and 0 for caseid 010110011 02.
Thank you in advance.
Array
Related Posts with Creating "total number of births by sex", using dummies for sex
Fill in missing information for only specific observations Code: * Example generated by -dataex-. To install: ssc install dataex clear input byte survey int …
Create a control group matching categorical and continuous variablesDear all, I am analyzing whether a CEO turnover (c. 600 events) has a long-term impact on operating…
Running a regression and variables are omitted due to collinearity but i don't know whyHi i was wondering if anyone could help me I am running the following tobit regression: Code: to…
Interpretation of the interaction terms of two categorical variables in Non Linear modelsHi, I have been searching online but cant find much. I need help in understanding the interpretatio…
Reusing SEM estimatesI feel like I'm missing something basic here. In order to reuse the results of a polychoric correlat…
Subscribe to:
Post Comments (Atom)
0 Response to Creating "total number of births by sex", using dummies for sex
Post a Comment