Skip to content

Commit

Permalink
s
Browse files Browse the repository at this point in the history
  • Loading branch information
friosavila committed Apr 26, 2024
1 parent 4f3138d commit 6f09f75
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions jwdid/unit_test.do
Original file line number Diff line number Diff line change
Expand Up @@ -3,31 +3,33 @@ 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
** Run
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)
Expand Down

0 comments on commit 6f09f75

Please sign in to comment.