CDF: Old version of CDF function

Description Usage Arguments Value Examples

View source: R/CDF.R

Description

Old version of CDF function

Usage

1
CDF(Y, X, Z = NULL, method = "linear regression", fast = TRUE)

Arguments

Y

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

X

a data frame containing numeric or factor vector(s) of size n containing the variable(s) to be tested (the condition(s) to be tested).

Z

a data frame containing numeric or factor vector(s) of size n containing the covariate(s).

method

a character string indicating which method to use to compute the CCDF, either 'linear regression', 'logistic regression' and 'permutations' or 'RF' for Random Forests. Default is 'linear regression' since it is the method used in the test.

fast

a logical flag indicating whether the fast implementation of logistic regression should be used. Only if 'dist_permutations' is specified. Default is TRUE.

Value

A list with the following elements:

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 <- CDF(Y,X,method="linear regression")

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

Related to CDF in ccdf...