powered by
dist_permuations
Computation of weights for CCDF, used in permut function when dist_permuations is specified.
weights_ccdf(Y, X, Z = NULL)
a numeric vector of size n containing the preprocessed expressions from n samples (or cells).
n
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
a numeric vector of size n containing the covariate. Multiple variables are not allowed
w a vector of weights
w
# NOT RUN { 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) # }
Run the code above in your browser using DataLab