Project

General

Profile

Support #1334 » motherhood construct.do

Francesco Bolzonella, 04/20/2020 06:10 PM

 
**** Summary synthesis of Motherhood variable construction ****

keep if sex==2 // keep only women
tab sex

*
tab agechy

* GENERATE INDIVIDUALS WITH CHILDREN AGE 0
* NEWBORN [??]
gen chld1 = .
replace chld1 = 0 if agechy==0

gen chld2=.
replace chld2=0 if agechy==1

gen chld3=.
replace chld3=0 if agechy==2

gen chld4=.
replace chld4=0 if agechy==3

* MOTHERHOOD
* define women
gen women=.
replace women=0 if sex==2

* WOMEN ENTREPRENEURSHIP

* generate women self-employed
gen wsemp=0
replace wsemp=1 if jbsemp==2
tab wsemp

* generate mompreneurs: mothers self- employed
gen mprenr=0
replace mprenr=1 if wsemp==1 & chld1==0
tab mprenr
(2-2/2)