weight.data: Re-weight the data to fit a list of target distributions.

Description Usage Arguments

Description

weight.data iteratively re-weights the data to find the best fit to a list of target distributions.

Usage

1
2
3
4
weight.data(data.frame, target.distributions,
  data.frame.weight.name = default.weight.name,
  target.distribution.weight.names = default.weight.name, epsilon = 0.01,
  max.steps = 10)

Arguments

data.frame

(data.frame) the data.frame with source data.

target.distributions

(list of data.frame) one more target distributions that the re-weighted data should approximate.

data.frame.weight.name

(character) the name of the weight variable in the source data.frame.

target.distribution.weight.names

(character) the names of weight variables in the target.distributions data frames.

epsilon

(numeric) the target precision of the approximation.

max.steps

(numeric) the maximum number of times the algorithm will re-weight the data to find the best fit.


mtrybulec/weighter documentation built on May 23, 2019, 8:20 a.m.