if (FALSE) {
# assumes that micro_synthetic already exists in your environment
# 1. build constraints for gender and age
g <- all_geog_constraint_gender(micro_synthetic, method= "macro.table")
a <- all_geog_constraint_age(micro_synthetic, method= "macro.table")
# 2. bind constraints to geographies and macro-data
cll <- all_geogs_add_constraint(attr_name= "age", attr_total_list= a,
macro_micro= micro_synthetic)
cll <- all_geogs_add_constraint(attr_name= "gender", attr_total_list= g,
macro_micro= micro_synthetic, constraint_list_list= cll)
}
Run the code above in your browser using DataLab