hi stata user ,

I'm having trouble in generating sex of the first born child. can anyone help me ?

information I have in the data
unit of analysis : mother
total number of children
sex by birth order
for eg b4_01(most recent birth) .......b4_19(first born)

how can generate sex of the first born /?

Array