View source: R/adjust2integers.R
adjust2integers | R Documentation |
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.
adjust2integers(x, solver = "symphony", ...)
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. |
The updating of the matrices is performed using integer linear programming after imposing all the row- and column-constraints.
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
Jose M. Pavia, pavia@uv.es
...
mt.ts <- tslphom(France2017P[, 1:8] , France2017P[, 9:12], new_and_exit_voters= "raw") mt.ts <- adjust2integers(mt.ts, solver = "lp_solve")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.