assign_weights: Assign weights for ipf-based sampling

Description Usage Arguments Value

View source: R/ipf.R

Description

Assign weights for ipf-based sampling

Usage

1
assign_weights(pums, table, alpha, k, marginals)

Arguments

pums

dataframe with marginal columns

table

dataframe with marginal combinations and frequencies

alpha

number between 0 and 1, weight of categorical variables

k

number between 0 and 1, weight of orginal variables

marginals

list with marginal data

Value

weight matrix, rows = rows in pums, columns = rows in table


leerichardson/spew documentation built on May 21, 2019, 1:39 a.m.