weights_ccdf: Computation of weights for CCDF, used in permut function when...

Description Usage Arguments Value Examples

View source: R/weights_ccdf.R

Description

Computation of weights for CCDF, used in permut function when dist_permuations is specified.

Usage

1
weights_ccdf(Y, X, Z = NULL)

Arguments

Y

a numeric vector of size n containing the preprocessed expressions from n samples (or cells).

X

a numeric or factor vector(s) of size n containing the variable to be tested (the condition to be tested). Multiple variables are not allowed

Z

a numeric vector of size n containing the covariate. Multiple variables are not allowed

Value

w a vector of weights

Examples

1
2
3
X <- as.factor(rbinom(n=100, size = 1, prob = 0.5))
Y <- ((X==1)*rnorm(n = 50,0,1)) + ((X==0)*rnorm(n = 50,0.5,1))
res_asymp <- weights_ccdf(Y,X)

ccdf documentation built on Sept. 24, 2021, 9:07 a.m.