I want to run a VAR(1) with both OLS standard errors and bootstrap standard errors which are computed from 2500 simulated realizations if that applicable
I used that: it did not work
**Code**
capture program myboot2
program define myboot2, rclass
preserve
bsample
var R_Me TY PE VS, lags(1)
estat vif
return scalar vif_3 = r(vif_3)
return scalar vif_2 = r(vif_2)
return scalar vif_1 = r(vif_1)
restore
end
simulate vif_3=r(vif_3) vif_2=r(vif_2) vif_1=r(vif_1),reps(2500) seed(12345): myboot2
bstat, stat(vif) n(876)
estat bootstrap, all
Related Posts with I want to run a VAR with bootstrap standard errors
Table of Sums Without Collapse?Hi Stata Friends - I'm back with a question regarding creating a table of values. I want to ascerta…
how to include random intercept in predicted margins and plot after mi estimate: mixedHi all, I've got a dataset of students in schools for which I've imputed 20 datasets, and I'm estim…
Dropping unmatched dataHi everyone, I need some help in processing data for my phd research. I started with a dataset inclu…
Wanted: New Home for Survey Sampling textsI've retired from professional work and I'd like to donate the stat books in my library to a good ho…
Endogeneity 2SLSHi there, I have to report on the difference in estimates of 2SLS and OLS (same model) and the endo…
Subscribe to:
Post Comments (Atom)
0 Response to I want to run a VAR with bootstrap standard errors
Post a Comment