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
vce(conditional) or vce(delta) when predicting marginsIf I have used vce(robust) when estimating the IV probit model, do I need to use vce(unconditional) …
Creating a Loop over a LoopGreetings I would like to run the following operation a 1000 times and store the coefficient estima…
setting base level for margins with eydxHello. i'm running a maultivariable panel regression model with xtgee and a number of continuous and…
Calibration plots when using cross-validation for internal model validation - grateful for adviceI have developed a multivariable prediction model using logistic regression and am using cross-valid…
Plotting probability trees to model path dependenceDear members, is there a command that allows to draw a probability tree in Stata? I have a panel d…
Subscribe to:
Post Comments (Atom)
0 Response to I want to run a VAR with bootstrap standard errors
Post a Comment