doPerm: Title

View source: R/CIBERSORT.R

doPermR Documentation

Title

Description

doPerm performs permutation-based sampling and runs the CoreAlg function iteratively.

Usage

doPerm(perm, X, Y, absolute, abs_method)

Arguments

perm

Number of permutations to perform.

X

Input matrix or data frame containing the predictor variables.

Y

Numeric vector containing the response variable.

absolute

Logical value indicating whether to use absolute space or relative space for the weights.

abs_method

String indicating the method to calculate the weights in absolute space. Can be either 'sig.score' or 'no.sumto1'.

Value

A list containing the distribution of correlation coefficients from the permutations.

Examples

X <- matrix(rnorm(100), nrow = 10)
y <- rnorm(10)
result <- doPerm(1000, X, Y, absolute = FALSE, abs_method = "sig.score")


IOBR/IOBR documentation built on Sept. 9, 2024, 8:36 p.m.