test_asymp: Asymptotic test

Description Usage Arguments Value Examples

View source: R/test_asymp.R

Description

Asymptotic test

Usage

1
test_asymp(Y, X, Z = NULL, space_y = FALSE, number_y = length(unique(Y)))

Arguments

Y

a numeric vector of size n containing the preprocessed expression for a given gene from n samples (or cells).

X

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

Z

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

space_y

a logical flag indicating whether the y thresholds are spaced. When space_y is TRUE, a regular sequence between the minimum and the maximum of the observations is used. Default is FALSE.

number_y

an integer value indicating the number of y thresholds (and therefore the number of regressions) to perform the test. Default is length(Y).

Value

A data frame 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_asymp <- test_asymp(Y,data.frame(X=X))

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