|
16 | 16 | mata |
17 | 17 | mata clear |
18 | 18 | mata set matastrict on |
19 | | -mata set matalnum on |
20 | | -mata set mataoptimize off |
| 19 | +mata set mataoptimize on |
| 20 | +mata set matalnum off |
21 | 21 |
|
22 | 22 | string scalar boottestStataVersion() return("`c(stata_version)'") |
23 | 23 | string scalar boottestVersion() return("02.01.00") |
@@ -699,7 +699,7 @@ void boottestModel::boottest() { |
699 | 699 | else |
700 | 700 | pinfoBootData = &infoAllData |
701 | 701 | } else |
702 | | - pinfoBootData = &J(Nobs,0,0) // causes no collapsing of data in _panelsum() calls, only multiplying by weights if any |
| 702 | + pinfoBootData = &(infoAllData = J(Nobs,0,0)) // causes no collapsing of data in _panelsum() calls, only multiplying by weights if any |
703 | 703 | NBootClust = rows(*pinfoBootData) |
704 | 704 |
|
705 | 705 | purerobust = NClustVar & !scoreBS & NBootClust==Nobs & !subcluster // do we ever error-cluster *and* bootstrap-cluster by individual? |
@@ -1096,6 +1096,8 @@ real scalar boottestModel::MakeNonWRENumers(real scalar thisWeightGrpStart, real |
1096 | 1096 |
|
1097 | 1097 |
|
1098 | 1098 |
|
| 1099 | +
|
| 1100 | +
|
1099 | 1101 | void boottestModel::MakeNonWREStats(real scalar thisWeightGrpStart, real scalar thisWeightGrpStop) { |
1100 | 1102 | real scalar d, i, c, j, l; real matrix eu, eueu, t; real colvector numer_l |
1101 | 1103 | pointer (real matrix) scalar peZVR0, pVR0 |
@@ -1124,7 +1126,7 @@ void boottestModel::MakeNonWREStats(real scalar thisWeightGrpStart, real scalar |
1124 | 1126 | for (i=Clust.N;i;i--) |
1125 | 1127 | Kcd[d].M[i,i] = Kcd[d].M[i,i] - (*peZVR0)[i,d] |
1126 | 1128 | if (scoreBS | !(1 | hascons)) |
1127 | | - Kcd[d].M = Kcd[d].M + ClustShare * (*peZVR0)[,d]' // for score bootstrap, recenter; "+" because we subtracted *peZVR0 |
| 1129 | + Kcd[d].M = Kcd[d].M :+ ClustShare * (*peZVR0)[,d]' // for score bootstrap, recenter; "+" because we subtracted *peZVR0 |
1128 | 1130 | } |
1129 | 1131 | else |
1130 | 1132 | if (subcluster) // crosstab c,c* is wide |
|
0 commit comments