applyContAdjustmentToSimframe | R Documentation |
Apply continuous adjustments to simframe.
applyContAdjustmentToSimframe(
Simenv,
varname,
iteration,
desiredProps,
catToContModels,
cont.binbreaks,
propensities
)
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). |
NULL. simframe in receiving object is modified directly.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.