Skip to content

Reuse simulation data #34

@jthaman

Description

@jthaman

For certain methods like add_pi.glm and add_quantile.glm, a small parametric bootstrap is performed to generate the desired statistic. Presently if these two methods are used, a separate simulation is run for each method. If the number of replicates (nSims) and new data (tb) are not changed, it would be nice to store and reuse the simulation data.

The benefits of storing simulation data are twofold:

  1. We can speed up our computations if many methods are run in sequence
  2. add_pi, add_qauntile, and add_probs will be consistent within an analysis --- each statistic calculated on the same simulation data.

Though we could just handle the second point by setting a seed.

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