Skip to content

Commit fb03be6

Browse files
committed
Fixed 2.2.0 bug--left behind temporary variables
1 parent 67b3613 commit fb03be6

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

boottest.ado

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*! boottest 2.3.0 8 Octember 2018
1+
*! boottest 2.3.1 25 Octember 2018
22
*! Copyright (C) 2015-18 David Roodman
33

44
* This program is free software: you can redistribute it and/or modify
@@ -682,10 +682,12 @@ program define _boottest, rclass sortpreserve
682682
`=cond(`level'<100, "yline(`=1-`level'/100') ylabel(#6 `=1-`level'/100')", "")' legend(off) `options'
683683
}
684684
else {
685+
local temptempvars
685686
foreach var in Y X1 X2 {
686687
if "``var''" != "" {
687688
ren ``var'' _boottest``var'' // work-around for weird bug in twoway contour, rejecting temp vars
688689
local `var' _boottest``var''
690+
local temptempvars `temptempvars' _boottest``var''
689691
}
690692
}
691693
c_local contourvars `Y' `X1' `X2' // pass these to calling program for dropping in case twoway contour crashes
@@ -694,6 +696,8 @@ program define _boottest, rclass sortpreserve
694696
ztitle(`"`=strproper("`madjust'")+ cond("`madjust'"!="","-adjusted r", "R")'ejection p value"', orient(rvert)) ///
695697
name(`graphname'`_h', `replace') crule(linear) scolor(gs5) ecolor(white) ccut(0(.05)1) plotregion(margin(zero)) /// // defaults copied from weakiv
696698
`graphopt'
699+
700+
cap drop `temptempvars'
697701
}
698702
}
699703
}
@@ -731,6 +735,7 @@ program define _boottest, rclass sortpreserve
731735
end
732736

733737
* Version history
738+
* 2.3.1 Fixed 2.2.0 bug--left behind temporary variables
734739
* 2.3.0 Removed optimization hacks from WRE code because they created matrices with 1 row per obs and 1 col per replication
735740
* 2.2.2 Allowed quietly option in ado interface to suppress dots. Made sorts in Mata code stable.
736741
* For LIML, reverted to finding eigenvalue of I-TT/TPZT instead of TT/TPZT; seems to avoid instances of eigensystem() returning all missing

0 commit comments

Comments
 (0)