makeInfinitySparseMatrix {MultiObjMatch} | R Documentation |
Internal helper to build infinity sparse matrix
Description
Formats the data and make a call to InfinitySparseMatrix-class
Usage
makeInfinitySparseMatrix(
data,
cols,
rows,
colnames = NULL,
rownames = NULL,
dimension = NULL,
call = NULL
)
Arguments
data |
the input numeric vector of cost |
cols |
the input numeric vector corresponding to control units |
rows |
the input numeric vector corresponding to treated units |
colnames |
(optional) vector containing names for all control units |
rownames |
(optional) vector containing names for all treated units |
dimension |
(optional) vector of number of treated and control units |
call |
(optional) funtion call used to create the InfinitySparseMatrix |
Value
an InfinitySparseMatrix object
[Package MultiObjMatch version 1.0.0 Index]