Professional Documents
Culture Documents
***KERNEL***
* COMANDO DE INSTALACION MODULO "psmatch2"
ssc install psmatch2, replace
Sorted by:
* Objetivo: medir el impacto de que una madre fume sobre el peso de hijo
*-------------------------------------------------------------------------------
* Estimamos la Probabilidad de participación
*-------------------------------------------------------------------------------
tab msmoke
codebook mbsmoke
tab mbsmoke
cigarettes
smoked
during
pregnancy Freq. Percent Cum.
1 if mother
smoked Freq. Percent Cum.
1 if mother
smoked Freq. Percent Cum.
obs. P .1861267
pred. P .1660298 (at x-bar)
. mfx
.
end of do-file
Density
6
0
histogram pscore, by(mbsmoke)
nonsmoker smoker
0 .2 .4 .6 .8 0 .2 .4 .6 .8
Pr(mbsmoke)
Graphs by 1 if mother smoked
0
Kernel density estimate
0 .2 .4 .6 .8
Pr(mbsmoke)
Density
0 .2 .4 .6 .8
Pr(mbsmoke)
kernel = epanechnikov, bandwidth = 0.0162
twoway (line y1 x1) (line y0 x0, lpattern(dash)), ///
Densidad
ytitle(Densidad) xtitle(Probabilidad de ser tratado) title(Propensity Score ) ///
6
0
legend(order(1 "Participante=1" 2 "No participante=0"))
Propensity Score
0 .2 .4 .6 .8
Probabilidad de ser tratado
Participante=1 No participante=0
*********************CLASE 40*************************
***ESTIMANDO EL SOPORTE COMUN***
**** Encontramos la máxima probabilidad predicha para el grupo de control y tratameinto:
sum pscore if mbsmoke ==0
. count if pscore_sc==.
31
**** Calidad de emparejamiento
*ningun coeficiente deb ser significativo
probit mbsmoke pscore $X