Skip to content

Incorrect Wild bootstrap overall #53

Description

@FinYang

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

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions