Deprecated. Use rk_rake()

rake(cons, inds, vars, output = "fraction", iterations = 10, ...)

Arguments

cons

A data frame of constraint variables

inds

A data frame of individual--level (survey) data

vars

A character string of variables to iterate over

output

A string specifying the desired output, either "fraction" (rk_extract()) or "integer" (rk_integerise())

iterations

The number of iterations to perform. Defaults to 10.

...

Additional arguments to pass to depending on desired output:

  • if "fraction" specify 'id' (see rk_extract() documentation)

  • if "integer" specify 'method' and 'seed' (see rk_integerise() documentation)

Value

A data frame with extracted weights (if output == "fraction", the default) or integerised cases (if output == "integer")

Examples

# NOT RUN {
Deprecated. Use rk_rake()
# }