Function to compute test statistics for a permuted design matrix
.mdmr.permstats(X, n, vg, trG, px, test.inds)
X
: A matrix or data frame of predictors.n
: sample sizevg
: Computational details (internal function)trG
: trace of Gpx
: Computational details (internal function)test.inds
: Computational details (internal function)