Skip to contents

Replicate the jackknife computations

Usage

replicate_jackknife(
  data,
  structure = NULL,
  formula = NULL,
  future_seed = TRUE,
  on_error = c("warn", "stop", "keep"),
  ...
)

Arguments

data

Data used for analysis.

structure

Between-study covariance structure; NULL infers it from formula.

formula

The formula used for specifying the fixed and random structure.

future_seed

Seed control forwarded to future.apply::future_lapply(future.seed = ...).

on_error

How failed replicate fits are handled: warn and retain, stop, or keep silently. The original full-data fit must succeed.

...

Additional function arguments passed to sample_jackknife().

Value

A named list of omission fits, with the full-data original_fit attribute.

Examples

# \donttest{
jack_reps <- replicate_jackknife(
  data = teacher_expectancy,
  structure = "univariate",
  studyID = "study",
  effectID = NULL,
  sample_size = NULL,
  formula = yi ~ 1,
  variance = "vi",
  varcov_type = "univariate"
)
# }