kernTEST {ROKET}R Documentation

kernTEST

Description

kernTEST

Usage

kernTEST(
  RESI = NULL,
  KK,
  YY = NULL,
  XX = NULL,
  OMNI,
  nPERMS = 1e+05,
  ncores = 1
)

Arguments

RESI

A numeric vector of null model residuals names(RESI) must be set to maintain sample ordering for survival regression, otherwise set RESI to NULL.

KK

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.

YY

A numeric vector of continuous outcomes to be fitted in a linear model. Defaults to NULL for survival model.

XX

A numeric data matrix with first column for intercept, a column of ones.

OMNI

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]].

nPERMS

A positive integer to specify the number of permutation-based p-value calculation

ncores

A positive integer for the number of cores/threads to reduce computational runtime when running for loops

Value

A R list of p-values and omnibus p-values.


[Package ROKET version 1.0.0 Index]