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
Probit model with fixed effectsDear all, I am estimating a probit model with individual-level data on sickness and district-level …
"No room to add more variables": Stata tries to load empty spreadsheetHi, I am trying to import an Excel spreadsheet the usual way but I am getting an error: Code: . im…
Prevalence with multiple variablesHello, I am analyzing a hospital dataset which provides demographic, diagnostic, and procedural data…
Bar Graph with multiples variables and categoriesHi, everyone! I need to perform a bar graph with 2 variables containing 4 categories each. The 2 var…
Remove gaps between the y-axis first or last ticks and horizontal frames of a box plotHi Stata box plot experts; I am sketching a box plot using Stata. These are my codes for y-axis lab…
Subscribe to:
Post Comments (Atom)
0 Response to Creating "total number of births by sex", using dummies for sex
Post a Comment