rakeWeights: Get weights for a single feature

Description Usage Value

View source: R/rakeWeights.R

Description

This function takes in the indicator matrix for one feature and the census data. using the raking algorism to calculate the weights for the feature according to the census constrain

Usage

1
2
rakeWeights(ind, con, n_zone, n_ind, n_start, n_cons, wt, ind_agg, count,
  tol = 0.0115)

Value

A list of the resulting weights, number of total iteration each iteration will compare the difference between the current weights and the previous weights, if there is practically no difference the number of iteration will be overwrote to 1000000001 to get out ot the iteration


xinBrueck/raking documentation built on Aug. 6, 2019, 12:14 p.m.