scale_targets: Scale targets to ensure consistency

Description Usage Arguments Value

View source: R/ipu.R

Description

Often, different marginals may disagree on the total number of units. In the context of household survey expansion, for example, one marginal might say there are 100k households while another says there are 101k. This function solves the problem by scaling all target tables to match the first target table provided.

Usage

1
scale_targets(targets, verbose = FALSE)

Arguments

targets

named list of data.frames in the same format required by ipu.

verbose

logical Show a warning for each target scaled? Defaults to FALSE.

Value

A named list with the scaled targets


ipfr documentation built on April 2, 2020, 1:12 a.m.