synthPopG: [Legacy] Generate a population in 2 dimensions given 2 1-d marginals and a further constraint.
Description
Using Quasirandom Integer Without-replacement Sampling (QIWS), this function
generates an n-dimensional population table where elements sum to the input marginals, and supplemental data.
The scope of this function is rather limited (qisi is more general).
Usage
synthPopG(marginals, exoProbsIn)
Arguments
marginals
a List of 2 integer vectors containing marginal data. The sum of elements in each vector must be identical
exoProbsIn
a 2d array of exogenous state probabilities
Value
an object containing: the population matrix, the occupancy probability matrix, a convergence flag, the chi-squared statistic, p-value, and error value (nonzero if not converged)