diff --git a/jwdid/unit_test.do b/jwdid/unit_test.do index 9e2721c..8ffe9c4 100644 --- a/jwdid/unit_test.do +++ b/jwdid/unit_test.do @@ -3,15 +3,16 @@ clear set seed 1 set obs 2000 gen ivar = _n -gen gvar = runiformint(3,6) +gen gvar = runiformint(3,6)+10 replace gvar = 0 if runiform()<.2 gen x1 = runiform() xtile dx=x1, n(2) expand 10 -bysort ivar:gen tvar = _n +bysort ivar:gen tvar = _n+10 gen te = 1*(t>=(g-1) )*(g!=0) gen y = (rnormal()) + te + ** installation capture program drop _all net install jwdid, from(C:\Users\Fernando\Documents\GitHub\stpackages\) replace @@ -19,15 +20,16 @@ net install jwdid, from(C:\Users\Fernando\Documents\GitHub\stpackages\) replace cd "C:\Users\Fernando\Documents\GitHub\stpackages\jwdid" -jwdid y , ivar(ivar) tvar(tvar) gvar(gvar) anti(3) +jwdid y , ivar(ivar) tvar(tvar) gvar(gvar) never estat event, predict(xb) -estat plot +estat plot, pstyle2(p1) legend(off) xscale(range(-6/11)) +estat plot, xlabel(1 "asd") estat group, predict(xb) -estat plot +estat plot, xlabel(1 "asd") estat calendar, predict(xb) -estat plot +estat plot, xlabel(1 "asd") estat simple, over(dx) predict(xb) -estat plot +estat plot, xlabel(1 "asd") jwdid y , tvar(tvar) gvar(gvar) estat event, predict(xb)