resampledData: Create resampled data

Description Usage Arguments Details

View source: R/Resampling.R

Description

Create resampled data

Usage

1
2
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.


EconModels/MacroGrowth documentation built on Dec. 17, 2019, 10:41 p.m.