Dear all,
I am researching the effect of child birth on the wages of women and men. I would like to research the effect of the first born and differentiate the effect in the first year of birth, second year after birth etc. Furthermore I would like to correct for any further births (second born, third born etc). How can I do this? I have now managed to create a variable which indicates whether that year a baby is born or not.
Please find an example of my data:
sex id year age educnew kidplus grwage
Male 17301 1994 29 0 0 .1280499
Male 17301 1995 30 4 0 .1107853
Male 17301 1996 31 4 1 .1489137
Male 17301 1997 32 4 0 .0253252
Male 17301 1998 33 4 0 -.0175293
Male 17301 1999 34 4 1 .1754386
Male 17301 2002 37 3 0 .2313433
Male 17301 2004 39 3 0 -.5030303
Male 17301 2005 40 3 0 -.0510732
Male 17301 2006 41 3 0 .079525
Male 17301 2007 42 3 0 -.0833333
Male 17301 2008 43 3 0 .0909091
Male 17301 2010 45 3 0 .0119048
Female 17302 1995 25 3 0 .2637853
Female 17302 1996 26 3 1 -.1128027
Female 17302 1997 27 3 0 -.0127456
Female 17302 1998 28 3 0 .1335726
Female 17302 2000 30 3 0 -.1666667
kidplus=1 if a child was born that year.
grwage is the growth in salary that year
id is the unique identifier for each participant.
educnew is the level of education of the participant.
Participants who did not give birth to children are also included.
Please note that the period is 1993-2018 but there are quite some missings, not everyone filled out the survey every year.
So far I have run regressions using:
xtset id year
xtreg grwage age kidplus educnew if sex==1, fe
xtreg grwage age kidplus educnew if sex==2, fe
This obviously does not provide me with the information I would like. I have been researching the command: sort by id (year);, but can't figure out how to implement it in the right way for this regression.
Any thoughts and help are welcome and much appreciated
. Thank you in advance.
Kind regards,
Elisabeth
I am researching the effect of child birth on the wages of women and men. I would like to research the effect of the first born and differentiate the effect in the first year of birth, second year after birth etc. Furthermore I would like to correct for any further births (second born, third born etc). How can I do this? I have now managed to create a variable which indicates whether that year a baby is born or not.
Please find an example of my data:
sex id year age educnew kidplus grwage
Male 17301 1994 29 0 0 .1280499
Male 17301 1995 30 4 0 .1107853
Male 17301 1996 31 4 1 .1489137
Male 17301 1997 32 4 0 .0253252
Male 17301 1998 33 4 0 -.0175293
Male 17301 1999 34 4 1 .1754386
Male 17301 2002 37 3 0 .2313433
Male 17301 2004 39 3 0 -.5030303
Male 17301 2005 40 3 0 -.0510732
Male 17301 2006 41 3 0 .079525
Male 17301 2007 42 3 0 -.0833333
Male 17301 2008 43 3 0 .0909091
Male 17301 2010 45 3 0 .0119048
Female 17302 1995 25 3 0 .2637853
Female 17302 1996 26 3 1 -.1128027
Female 17302 1997 27 3 0 -.0127456
Female 17302 1998 28 3 0 .1335726
Female 17302 2000 30 3 0 -.1666667
kidplus=1 if a child was born that year.
grwage is the growth in salary that year
id is the unique identifier for each participant.
educnew is the level of education of the participant.
Participants who did not give birth to children are also included.
Please note that the period is 1993-2018 but there are quite some missings, not everyone filled out the survey every year.
So far I have run regressions using:
xtset id year
xtreg grwage age kidplus educnew if sex==1, fe
xtreg grwage age kidplus educnew if sex==2, fe
This obviously does not provide me with the information I would like. I have been researching the command: sort by id (year);, but can't figure out how to implement it in the right way for this regression.
Any thoughts and help are welcome and much appreciated

Kind regards,
Elisabeth
Comment