|
利用範例檔作PS MATCHING的演練
參考網址: https://sites.google.com/site/econometricsacademy/econometrics-models/propensity-score-matching
語法如下
跑起來都是順的
但是卻不知道怎樣找出那些是經過PS MATCHING後的CONTROL組和TREATMENT組,和想要這兩組的LIST TABLE
先感謝幫忙的人
* Download and install Stata ado files for pscore * net install st0026_2 global treatment TREAT global ylist RE78 global xlist AGE EDUC MARR global breps 5 * global ylist REDIFF describe $treatment $ylist $xlist summarize $treatment $ylist $xlist bysort $treatment: summarize $ylist $xlist reg $ylist $treatment reg $ylist $treatment $xlist pscore $treatment $xlist, pscore(myscore) blockid(myblock) comsup gen id = _n attnd $ylist $treatment $xlist, pscore(myscore) comsup det boot reps($breps) dots attnd $ylist $treatment $xlist, matchvar(neighbor) matchdta(match) id(id)
|