You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
di as txt "The Stata package {cmd:julia} is not up to date. Attempting to update it with {stata ssc install julia, replace}." _n
@@ -171,7 +171,7 @@ program define _boottest, rclass sortpreserve
171
171
di as err "option " as res "svmat(" `svmat' ")" as err " not allowed."
172
172
error 198
173
173
}
174
-
if "`svmat'" == "" local svmat `_svmat'
174
+
if "`svmat'" == "" local svmat: copy local _svmat
175
175
}
176
176
177
177
if `"`options'"' != "" {
@@ -190,7 +190,7 @@ program define _boottest, rclass sortpreserve
190
190
local madjust `bonferroni'`sidak'
191
191
192
192
if `"`graphname'"' != "" {
193
-
local 0 `graphname'
193
+
local 0: copy local graphname
194
194
syntax [anything(name=graphname)], [replace]
195
195
}
196
196
else local graphname Graph
@@ -225,7 +225,7 @@ program define _boottest, rclass sortpreserve
225
225
226
226
if `"`robust'`cluster'"' != "" {
227
227
local hasrobust 1
228
-
local clustvars `cluster'
228
+
local clustvars: copy local cluster
229
229
if `"`clustvars'"'!="" confirm var `clustvars'
230
230
local override 1
231
231
di as txt _n "Overriding estimator's cluster/robust settings with " as res `"`=cond("`clustvars'"=="", "robust", "cluster(`clustvars')")'"'
@@ -340,7 +340,7 @@ program define _boottest, rclass sortpreserve
340
340
tempvar FEname
341
341
qui egen long `FEname' = group(`_FEname') if e(sample)
342
342
}
343
-
else local FEname `_FEname'
343
+
else local FEname: copy local _FEname
344
344
}
345
345
346
346
if"`cmd'"=="xtreg" {
@@ -350,7 +350,7 @@ program define _boottest, rclass sortpreserve
350
350
}
351
351
else if inlist("`cmd'","xtivreg","xtivreg2","xtdidregress") local FEdfadj 0
352
352
else if inlist("`cmd'", "reghdfe", "ivreghdfe") local FEdfadj = max(1, e(df_a))
353
-
else local FEdfadj `NFE'
353
+
else local FEdfadj: copy local NFE
354
354
355
355
if`"`seed'"'!="" set seed `seed'
356
356
@@ -364,7 +364,7 @@ program define _boottest, rclass sortpreserve
364
364
qui gen double `wtname' `e(wexp)'
365
365
}
366
366
else if c(varabbrev)=="on" unab wtname: `2'
367
-
else local wtname `2'
367
+
else local wtname: copy local 2
368
368
}
369
369
370
370
if`"`h0s'"'!="" {
@@ -423,7 +423,7 @@ program define _boottest, rclass sortpreserve
423
423
if`"`: constraint `c''"'=="" di as res "Constraint `c' not found and will be skipped."
424
424
}
425
425
}
426
-
local h0_1 `h0'
426
+
local h0_1: copy local h0
427
427
}
428
428
429
429
if `N_h0s'==1 local madjust
@@ -477,7 +477,7 @@ program define _boottest, rclass sortpreserve
477
477
}
478
478
}
479
479
else {
480
-
local Xnames_exog `colnames'
480
+
local Xnames_exog: copy local colnames
481
481
if inlist("`e(cmd)'", "didregress", "xtdidregress") local Xnames_exog: subinstr local Xnames_exog "r1vs0."""
482
482
}
483
483
@@ -503,7 +503,7 @@ program define _boottest, rclass sortpreserve
503
503
}
504
504
}
505
505
}
506
-
local `varlist' `_revarlist'
506
+
local `varlist': copy local _revarlist
507
507
}
508
508
mata _boottestkeepC = st_matrix("`keepC'"); _boottestp = cols(_boottestkeepC)? _boottestp[_boottestkeepC] : J(0,1,0)
509
509
@@ -528,7 +528,7 @@ program define _boottest, rclass sortpreserve
528
528
}
529
529
530
530
if`"`bootcluster'"'=="" {
531
-
local bootcluster `clustvars'
531
+
local bootcluster: copy local clustvars
532
532
if `reps' & `NErrClustVar'>1 di as txt "({cmdab:bootcl:uster(`clustvars')} assumed)"
533
533
}
534
534
local clustvars `:list clustvars & bootcluster' `:list clustvars - bootcluster'
@@ -544,7 +544,7 @@ program define _boottest, rclass sortpreserve
544
544
}
545
545
else local _allclustvars `_allclustvars' `clustvar'
546
546
}
547
-
local allclustvars `_allclustvars'
547
+
local allclustvars: copy local _allclustvars
548
548
}
549
549
local NBootClustVar: word count `bootcluster'
550
550
@@ -668,7 +668,7 @@ program define _boottest, rclass sortpreserve
668
668
_parse expand lc lg: cmdline, common(CONSTraints(passthru) from(passthru) INIt(passthru) ITERate(passthru) Robust) // would be nice to extract, thus remove, cluster() option for speed, but it affects sample
0 commit comments