maicT2Test {maicChecks} | R Documentation |
Hotelling's T-square test to check whether maic is needed
Description
Conducts Hotelling's T-square test
Usage
maicT2Test(ipd, ad, n.ad = Inf)
Arguments
ipd |
a dataframe with n row and p coln, where n is number of subjects and p is the number of variables used in matching. |
ad |
a dataframe with 1 row and p coln. The matching variables should be in the same order as that in |
n.ad |
default is Inf assuming |
Details
When n.ad
is not Inf, the covariance matrix is adjusted by the factor n.ad/(n.ipd + n.ad)), where n.ipd is nrow(ipd), the sample size of ipd
.
Value
T.sq.f |
the value of the T^2 test statistic |
p.val |
the p-value corresponding to the test statistic. When the p-value is small, matching is necessary. |
Author(s)
Lillian Yau & Ekkehard Glimm
References
Glimm & Yau (2021). Geometric approaches to assessing the numerical feasibility for conducting matching-adjusted indirect comparisons. arXiv 2108.01896.
Examples
## eAD[1,] is the scenario A in the reference paper,
## i.e. when AD is perfectly within IPD
maicT2Test(eIPD, eAD[1,2:3])