kernTEST
kernTEST(
RESI = NULL,
KK,
YY = NULL,
XX = NULL,
OMNI,
nPERMS = 1e+05,
ncores = 1
)A R list of p-values and omnibus p-values.
A numeric vector of null model residuals
names(RESI) must be set to maintain sample ordering
for survival regression, otherwise set RESI to NULL.
An array containing double-centered positive semi-definite
kernel matrices. Refer to MiRKAT::D2K() for transforming
distance matrices to kernel matrices. The dimnames(KK)[[1]] and
dimnames(KK)[[2]] must match names(RESI).
Also set dimnames(KK)[[3]] to keep track of each kernel matrix.
A numeric vector of continuous outcomes to be fitted in a linear model. Defaults to NULL for survival model.
A numeric data matrix with first column for intercept, a column of ones.
A matrix of zeros and ones. Each column corresponds to a
distance matrix while each row corresponds to an omnibus test. Set
rownames(OMNI) for labeling outputted p-values and
colnames(OMNI) which should match dimnames(KK)[[3]].
A positive integer to specify the number of permutation-based p-value calculation
A positive integer for the number of cores/threads to reduce computational runtime when running for loops