adjust2integers: Integer-adjusting of outputs of the lphom-family functions

View source: R/adjust2integers.R

adjust2integersR 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 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.

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")

lphom documentation built on March 21, 2022, 9:09 a.m.

Related to adjust2integers in lphom...