Skip to contents

Test Sprigs object as returned by kalis::Sprigs using Stable Distillation.

Usage

TestSprigs(
  y,
  sprigs,
  ortho = FALSE,
  Q = matrix(1/sqrt(nrow(y)), nrow(y), 1),
  use.forking = FALSE
)

Arguments

y

a n x m matrix of phenotype residuals, one phenotype per column

sprigs

a list as returned by kalis::Sprigs

ortho

a logical, to be deprecated, currently kept for background compatibility

Q

a n x q orthogonal matrix with columns spanning the column space of the background covariates

use.forking

a logical, is multiprocessing by process forking allowed? Some relatively minor acclerations are possible if TRUE, but users should verify that it is safe to launch forked processes on their compute cluster.