Re: Variable Construction [message #9240 is a reply to message #9237] |
Thu, 25 February 2016 23:22 |
Trevor-DHS
Messages: 789 Registered: January 2013
|
Senior Member |
|
|
1. For mother's age at delivery, your method above would not be accurate and would only working for living children. A better approach is to use:
gen mage_deliv = int((b3 - v011)/12)
where b3 is the CMC date of birth of the child and v011 is the CMC date of birth of the mother. The result of the difference is divided by 12 to convert to years.
2. Variable bord provides the birth order or parity at birth, however, note that for twins the two births will have different birth orders.
|
|
|