Skip to content

Is boot_algo3_crv3 in boot_algo3_cpp.cpp not used? #154

@skranz

Description

@skranz

Hi Alexander,

first of all: this is really a great R package. Thanks a lot for creating it!

When I tested the "fastnreliable" standard errors, bootstrap_type ‘31’ was computed super fast, while '33' and '13' took quite a while. I wonder whether one of the reasons is that boot_algo_fastnreliable.R uses the C++ function boot_algo3_crv1_denom for '11' and '31' but does not call the existing C++ function boot_algo3_crv3 in boot_algo3_cpp.cpp for '13' and '33'. I wondered: is there a bigger hurdle in using boot_algo3_cpp? Does it just not yield substantial speed gains? Or, would it be relatively simple to modify the code in boot_algo_fastnreliable.R to use it?

Background: I am currently working on a large-scale meta study where I plan to analyze hundreds or perhaps even thousands of regressions with cluster robust standard errors from reproduction packages from published economic articles. For each regression, I try to build a Monte-Carlo simulation to evaluate different cluster-robust standard errors. Since I want to evaluate cluster bootstrap standard errors for 1000 MC samples for each of perhaps thousands of regressions, speed is of the essence. I am creating a slightly modified version of your package that minimizes recomputation of stuff that is shared across the MC samples. Your fastnwild code works incredibly fast (and seems to perform really well, also compared to CR2 with DF adjusted and Jackknive CR3), but I am not sure whether all fastnreliable algorithms will be fast enough for such a comprehensive meta study.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions