adjust2integers: Integer-adjusting of outputs of the lphom-family functions
Description
Takes as input an object generated with an algorithm of the lphom-family
(lphom, tslphom, nslphom, tslphom_dual, nslphom_joint, ....) and returns
as output an object of the same class as the input object with all their relevant estimated (local and global) transfer matrices
of counts updated to their closest integer matrices. The rest of main components of the object are also accordingly updated.
Usage
adjust2integers(x, solver = "symphony", ...)
Value
An object of the same class and components as x with its components properly updated after adjusting the estimated count matrices in x using integer linear programming
Arguments
x
An object output of a lphom family algorithm
solver
A character string indicating the linear programming solver to be used to approximate
to the closest integer solution, only symphony and lp_solve are allowed.
By default, symphony. The package Rsymphony needs to be installed for the option symphony
to be used.
...
Other arguments passed on the method. Not currently used.
The updating of the matrices is performed using integer linear programming after imposing all the row- and column-constraints.
References
Pavia, JM (2024). Integer estimation of inner-cell values in RxC ecological tables. Bulletin of Sociological Methodology, 164(1), 97-121. tools:::Rd_expr_doi("10.1177/07591063241277064").