This function calculates the weights to apply to records for Matching-Adjusted Indirect Comparison (MAIC), from either a raw input matrix or a maic.input object
maicWeight(x, opt =TRUE, keep.x =TRUE,...)
Arguments
x: Either a maic.input object or a MAIC input matrix
opt: return the optim object as attribute
keep.x: return the input matrix as an attribute
...: Optional arguments to optim
Returns
A numeric vector of weights corresponding to the rows in the input matrix