forval j=2003/2017{
2. psmatch2 treat lnofdi itr agdpv lnlf al ei nrr ind if year==`j' & matched!=1, norepl n(1
> ) cal(0.005)
3. replace match=1 if treat==0 & _weight!=.
4. replace matchmark=_n1 if _treat==1
5. replace q_matchyear=year if _weight!=.
6. g a=EXPY if _treat==0 & _weight!=.
7. bys EXPY:egen b=min(a)
8. replace matched=1 if b!=.
9. drop a b
10. }
outcome does not vary; remember:
0 = negative outcome,
all other nonmissing values = positive outcome
r(2000);
end of do-file
r(2000);
我买了楼主的资料 但是跑的时候显示错误
|