This function returns a list containing models and coefficients from the resample fits.

resampledFits(model, method = c("residual", "resample", "wild",
  "parametric", "debug"), n, save.data = FALSE, seed, id,
  include.original = TRUE, reindex = FALSE,
  mc.cores = parallel::detectCores(), ...)

Arguments

model

a model returned from linexModel(), cdModel(), cesModel(), or sfModel(). model must have been fit with save.data = TRUE.

method

one of "resample", "residual", "wild", "parametric", or "debug"

n

the number of resamples you want to perform

save.data

a logical indicating whether the data should be saved with each model.

seed

a seed for set.seed() to make results reproducible

id

a character vector of length 1 used as an identifier that will be added to the output. This is convenient for marking data internally if you are doing resampling on many different models.

include.original

a logical indicating whether the original model and coefficients should be included in the returned value.

reindex

a boolean that indicates whether to reindex the resampled fits.

mc.cores

number of cores to use in main loop.

...

additional arguments passed to fitfun

Value

a list of length two containing a data frame of coefficients and a list of models