Generates a bootstrap pseudo-sample from a fitted VAR model using either residual (iid) resampling or a wild (Rademacher) bootstrap scheme.
Value
A list with two elements: ynext — T x N bootstrapped data matrix
(first p rows copied from y); rademacher — T_eff-length vector of
Rademacher signs used in the wild scheme (all zeros for residual scheme).
Details
The recursion is $$y_t = c + A_1 y_{t-1} + \cdots + A_p y_{t-p} + e_t^*$$ where \(e_t^*\) is either a randomly resampled residual (residual scheme) or the t-th residual multiplied by a Rademacher sign (wild scheme).
