# NOT RUN {
ageByGender = array(c(1,2,5,3,4,3,4,5,1,2), dim=c(5,2))
ageByEthnicity = array(c(4,6,5,6,4,5), dim=c(3,2))
seed = array(rep(1,30), dim=c(5,2,3))
result = ipf(seed, list(c(1,2), c(3,2)), list(ageByGender, ageByEthnicity))
# }
Run the code above in your browser using DataLab