applyContAdjustmentToSimframe: Apply continuous adjustments to simframe.

View source: R/Simenv.r

applyContAdjustmentToSimframeR Documentation

Apply continuous adjustments to simframe.

Description

Apply continuous adjustments to simframe.

Usage

applyContAdjustmentToSimframe(
  Simenv,
  varname,
  iteration,
  desiredProps,
  catToContModels,
  cont.binbreaks,
  propensities
)

Arguments

Simenv

simenv receiving object. Simenv$simframe is modified.

catToContModels

A list of models which will to used to convert the adjusted categorical variable back to continuous.

cont.binbreaks

Binbreaks for the variable being adjusted if exist.

propensities

named list of propensities for the cat.adjustments

varnames

varname(s) of variable(s) to adjust.

iteration'

the current iteration

desired_props

a vector of desired proportions, eg: c(0.1, 0.1, 0.8). Can have a "logisetexpr" attribute - if so, this is evaulated, and becomes a logical vector indicating which observations of "varname" to adjust. (i.e. the "logisetexpr" attribute gives which subset of the data the desired_props are intended for).

Value

NULL. simframe in receiving object is modified directly.


kcha193/simarioV2 documentation built on April 8, 2024, 4:51 p.m.