applyCatAdjustmentToSimframeVarSingle: Adjust the proportions of a single simframe variable.

View source: R/Simenv.r

applyCatAdjustmentToSimframeVarSingleR Documentation

Adjust the proportions of a single simframe variable.

Description

Adjust the proportions of a single simframe variable.

Usage

applyCatAdjustmentToSimframeVarSingle(
  Simenv,
  varname,
  desired_props,
  propens,
  print_adj = T,
  logiset = NULL
)

Arguments

Simenv

simenv receiving object. Simenv$simframe is modified.

varname

simframe variable to adjust

desired_props

a vector of desired proportions, eg: c(0.1, 0.1, 0.8)

propens

propensities for this variable, if any

logiset

logical vector indicating which rows to include, or NULL (the default) to include all.

printAdj

if TRUE, display adjusted proportions after adjustment

Value

NULL. simframe in receiving object is modified directly.


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