Skip to content

Commit b352c0c

Browse files
committed
Fix to the fix
1 parent 2518beb commit b352c0c

File tree

2 files changed

+16
-14
lines changed

2 files changed

+16
-14
lines changed

boottest.ado

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -435,17 +435,19 @@ program define _boottest, rclass sortpreserve
435435

436436
if `df'>1 & "`ptype'"!="symmetric" di as txt "Note: {cmd:ptype(`ptype')} ignored for multi-constraint null hypotheses."
437437

438-
if `df'<=2 & "`graph'"=="" { // a bit duplicative of code in the if-`ML' block just below...
439-
local coleq: coleq `b'
440-
if "`:word 1 of `coleq''"=="_" local coleq
441-
local colnames: colnames `b'
442-
forvalues r=1/2 {
443-
local terms 0
444-
local constraintLHS`r'
445-
forvalues c=1/`=colsof(`C0')-1' {
446-
if `C0'[`r',`c'] {
447-
if `terms++' local constraintLHS`r' `constraintLHS`r''+
448-
local constraintLHS`r' `constraintLHS`r'' `=cond(`C0'[`r',`c']!=1,"`=`C0'[`r',`c']'*","")'`=cond("`coleq'"=="","","[`:word `c' of `coleq'']")'`:word `c' of `colnames''
438+
if `df'<=2 { // a bit duplicative of code in the if-`ML' block just below...
439+
if "`graph'"=="" {
440+
local coleq: coleq `b'
441+
if "`:word 1 of `coleq''"=="_" local coleq
442+
local colnames: colnames `b'
443+
forvalues r=1/2 {
444+
local terms 0
445+
local constraintLHS`r'
446+
forvalues c=1/`=colsof(`C0')-1' {
447+
if `C0'[`r',`c'] {
448+
if `terms++' local constraintLHS`r' `constraintLHS`r''+
449+
local constraintLHS`r' `constraintLHS`r'' `=cond(`C0'[`r',`c']!=1,"`=`C0'[`r',`c']'*","")'`=cond("`coleq'"=="","","[`:word `c' of `coleq'']")'`:word `c' of `colnames''
450+
}
449451
}
450452
}
451453
}

boottest.sthlp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{smcl}
2-
{* *! version 2.2.2 26 August 2018}{...}
2+
{* *! version 2.3.5 7 November 2018}{...}
33
{help boottest:boottest}
44
{hline}{...}
55

@@ -406,9 +406,9 @@ Has {cmd:boottest} improved your career or marriage? Consider
406406
giving back through a {browse "http://j.mp/1iptvDY":donation} to support the work of its author, {browse "http://davidroodman.com":David Roodman}.
407407

408408

409-
{title:Citation}
409+
{title:Authorship and citation}
410410

411-
{p 4 8 2}{cmd:boottest} is not an official Stata command. It is a free contribution to the research community.
411+
{p 4 8 2}{cmd:boottest} is not an official Stata command. It is a free contribution to the research community, by David Roodman.
412412
Please cite: {p_end}
413413
{p 8 8 2}Roodman, D., J. MacKinnon, M. Nielsen, and M. Webb. 2018. Fast and wild: bootstrap inference in Stata using boottest. Queen's Economics Department Working Paper No. 1406.{p_end}
414414

0 commit comments

Comments
 (0)