resample.covariates: Parametrically resamples selected variables in the dataset.

Description Usage Arguments Details Value Note Author(s)

View source: R/resample.covariates.R

Description

Parametrically resamples specified variables in the dataset based on a measure of uncertainty and a sampling distribution supplied by the user.

Usage

1
resample.covariates(ddf.dat.working, covariate.uncertainty, MAE.warnings)

Arguments

ddf.dat.working

a list of datasets to be used in the analyses

covariate.uncertainty

a dataframe detailing the variables to be resampled - variable.layer, variable.name, cor.factor.layer, cor.factor.name , uncertainty.layer, uncertainty.name, uncertainty.measure, sampling.distribution.

MAE.warnings

character vector of warning messages

Details

This function may also apply a correction factor. If numeric is specified the same value will be applied to all observations. If a data layer is specified then this function looks for a variable name in the specified layer of the dataset and applies this as a correction factor.

Value

list of dataframes containing the parametrically resampled data

Note

Internal function not intended to be called by user.

Author(s)

Laura Marshall


mads documentation built on July 2, 2020, 2:12 a.m.