mstdize from SSC is an iterative method of biproportional adjustment of rows and columns (developed by Nicholas Cox) that takes a table of var-name, with rows indexed by row-var and columns indexed by column-var, and produces a new table containing var-name scaled such that the row totals are given by row-total-var and the column totals given by column-total-var (see the help of mstdize for more details). This procedure is known by RAS technique for the users of input-output and social accounting matrices.
An alternative way to achieve the same balancing goal is to minimize an objective function (such as minimizing an entropy function or the sum of squared deviations) conditional on the target new row totals and the target new column totals. The users of social accounting matrices typically use GAMS to balance their input-output tables given the new row and column totals.
mstdize doesn't offer the possibility of minimizing an objective function while producing the target new table. I am wondering whether an alternative command in STATA offers the possibility to minimize an objective function (such as minimizing an entropy function or the sum of squared deviations) conditional on the target new row totals and the target new column totals to produce the target new table.
Many thanks in advance for your help!
An alternative way to achieve the same balancing goal is to minimize an objective function (such as minimizing an entropy function or the sum of squared deviations) conditional on the target new row totals and the target new column totals. The users of social accounting matrices typically use GAMS to balance their input-output tables given the new row and column totals.
mstdize doesn't offer the possibility of minimizing an objective function while producing the target new table. I am wondering whether an alternative command in STATA offers the possibility to minimize an objective function (such as minimizing an entropy function or the sum of squared deviations) conditional on the target new row totals and the target new column totals to produce the target new table.
Many thanks in advance for your help!
Comment