Parallelized Stable Distillation for the OLS Model
distill_pivot_par.RdDistill multiple outcome vectors under the same null and alternative OLS model (in parallel)
Arguments
- y
 a n x m matrix of phenotype vectors, one phenotype per column
- x
 a n x p matrix of predictors (may be passed as a
sparseMatrix, see theMatrixpackage)- Q
 an orthogonal matrix whose columns span the column space of the background covariates
- max_num_causal
 a non-negative integer, maximum number of causal/active predictors to search for
- p_order
 a vector of non-negative integers, if provided, columns of
xwill be distilled in the orderp_order[1],p_order[2],..
Value
a list containing
p_valuea vector of m p-values from the Renyi Outlier Test, in the same order as the phenotype vectors providedua p x m matrix of extracted p-valuessignsa p x m matrix of effect signs corresponding the extracted p-valuesu. Note, these signs are useful for post-hoc interpretation but are NOT extracted in the SD procedure so they are NOT independent ofu.ya n x m matrix of distilled phenotype vectors y left over as a biproduct of distillation (independent ofu) and ready for downstream testing