adjust2integers {lphom} | R Documentation |
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", ...)
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 |
... |
Other arguments passed on the method. Not currently used. |
Details
The updating of the matrices is performed using integer linear programming after imposing all the row- and column-constraints.
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
Author(s)
Jose M. Pavia, pavia@uv.es
References
...
Examples
mt.ts <- tslphom(France2017P[, 1:8] , France2017P[, 9:12], new_and_exit_voters= "raw")
mt.ts <- adjust2integers(mt.ts, solver = "lp_solve")