Helper function for creating targets from auxiliary information and formula
create_targets.Rd
Returns weighting targets for survey objects.
Examples
data(poll.data)
poll.svy = survey::svydesign(ids = ~ 1,
data = poll.data)
#> Warning: No weights or probabilities supplied, assuming equal probability
#Set up raking formula:
formula_rake = ~ age_buckets + educ + gender + race + educ * pid + bornagain
#Generate targets:
targets_rake = create_targets(poll.svy, formula_rake)