Create resampled data

resampledData(model, method = c("residual", "resample", "wild",
  "parametric", "debug"), reindex = FALSE)

Arguments

model

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

method

One of resample: resample rows from data. Can result in repeated years. residual: resamples the residuals and applies them to the data. All years are present. wild: same as residuals but randomly select sign of resampled residuals. parametric: resample residuals from normal distribution

reindex

a logical indicating whether response values should be reindexed before fitting.

Details

This relies on the fact that each of these models stores the data used to fit the model with the response variable in the first column.