|
1 | | -*! boottest 2.1.2 18 June 2018 |
| 1 | +*! boottest 2.1.3 28 June 2018 |
2 | 2 | *! Copyright (C) 2015-18 David Roodman |
3 | 3 |
|
4 | 4 | * This program is free software: you can redistribute it and/or modify |
@@ -463,6 +463,11 @@ program define _boottest, rclass sortpreserve |
463 | 463 | mata _boottestC = st_matrixcolstripe("`CC0'")[,2] |
464 | 464 | mata _boottestC = !(strmatch(_boottestC, "*b*.*") :| strmatch(_boottestC, "*o*.*"))'; _boottestC[cols(_boottestC)] = 0 // don't look at r column |
465 | 465 | mata st_matrix("`CC0'", select(st_matrix("`CC0'"), rowsum(select(st_matrix("`CC0'"), _boottestC) :!= 0))) |
| 466 | + cap mat `CC0'[1,1] = `CC0'[1,1] |
| 467 | + if _rc { |
| 468 | + di as error _n "Null constraint applies only to omitted variables or base levels of factor variables." |
| 469 | + continue |
| 470 | + } |
466 | 471 |
|
467 | 472 | `quietly' di as res _n "Re-running regression with null imposed." _n |
468 | 473 | if `"`cmdline'"'=="" local 0 `e(cmdline)' |
@@ -534,6 +539,7 @@ program define _boottest, rclass sortpreserve |
534 | 539 | tokenize `:coleq `b'' |
535 | 540 | local lasteq |
536 | 541 | local eq 0 |
| 542 | + local _sc |
537 | 543 | qui forvalues i=1/`k' { |
538 | 544 | if "``i''" != "`lasteq'" | "``i''"=="/" { |
539 | 545 | local ++eq |
@@ -698,7 +704,8 @@ program define _boottest, rclass sortpreserve |
698 | 704 | end |
699 | 705 |
|
700 | 706 | * Version history |
701 | | -* 2.1.3 Added more return values and Roodman et al. cite to help file. Blocked warning about \alpha(B+1) being an integer for Rademacher with <=12 groups. |
| 707 | +* 2.1.3 Fixed crash on testing of multiple independent hypotheses on ML models |
| 708 | +* Added more return values and Roodman et al. cite to help file. Blocked warning about \alpha(B+1) being an integer for Rademacher with <=12 groups. |
702 | 709 | * 2.1.2 Fixed error in removing half-counting of ties in 2.0.6 |
703 | 710 | * Stopped crashes after mlogit (and probably other mlogit and mprobit commands) |
704 | 711 | * 2.1.1 Fixed failure to detect FE variable after xtreg, fe cluster() |
|
0 commit comments