Wild bootstrap should have $\hat\epsilon_t\nu_t$ where $\hat\epsilon$ is the residuals and $\nu_t$ is randomly simulated from the chosen distribution. Right now the implementation in the package all uses $\hat\epsilon_t + \nu_t$. For example,
|
innov <- switch(boot.scheme, |
|
"resample"= resids[sample(seq_len(t), replace=TRUE),], |
|
"wild1"=resids+rnorm(t), |
|
"wild2"=resids+sample(c(-1,1), size = t, replace=TRUE), |
|
"check"= resids) |
Wild bootstrap should have$\hat\epsilon_t\nu_t$ where $\hat\epsilon$ is the residuals and $\nu_t$ is randomly simulated from the chosen distribution. Right now the implementation in the package all uses $\hat\epsilon_t + \nu_t$ . For example,
tsDyn/tsDyn/R/VAR.sim.R
Lines 190 to 194 in 15c8679