maicLP function

Checks if AD is within the convex hull of IPD using lp-solve

Checks if AD is within the convex hull of IPD using lp-solve

maicLP(ipd, ad)

Arguments

  • ipd: a dataframe with n row and p column, where n is number of subjects and p is the number of variables used in matching.
  • ad: a dataframe with 1 row and p column. The matching variables should be in the same order as that in ipd. The function does not check this.

Returns

  • lp.check: 0 = AD is inside IPD, and MAIC can be conducted; 2 = otherwise

Examples

## eAD[1,] is the scenario A in the reference paper, ## i.e. when AD is within IPD convex hull maicLP(eIPD, eAD[1,2:3]) ## eAD[3,] is the scenario C in the reference paper, ## i.e. when AD is outside IPD convex hull maicLP(eIPD, eAD[3,2:3])

References

Glimm & Yau (2021). "Geometric approaches to assessing the numerical feasibility for conducting matching-adjusted indirect comparisons", Pharmaceutical Statistics, 21(5):974-987. doi:10.1002/pst.2210.

  • Maintainer: Lillian Yau
  • License: GPL (>= 3)
  • Last published: 2025-03-03

Useful links