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
test for structural breaks in panel dataHi everyone, I am looking for a command to test for structural breaks in a panel dataset; in particu…
Converting given dates (in string format) to stata internal format dateHi everyone, Please consider the following data: Code: * Example generated by -dataex-. To install:…
Calculate the CI/SE/p-value of an inverse transformed variable in Stata after regressionThis problem halfway between Stata and Statistics - which is why I am putting it here. In this mode…
Creating dummy variable in Panel DataHi, i want to create a dummy variable (group-wise). my data ranges between 2001 to 2010. Features of…
How to multiply a vector of variables with a matrix?Dear all, I am stuck in the following problem when I am doing my master thesis, and I failed to fin…
Subscribe to:
Post Comments (Atom)
0 Response to Creating "total number of births by sex", using dummies for sex
Post a Comment