Create resampled data
resampledData(model, method = c("residual", "resample", "wild", "parametric", "debug"), reindex = FALSE)
model | a model returned from |
---|---|
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. |
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.