rank_ttest: Compute ranking of biomarkers by sorting t-test p-values

Description Usage Arguments Value Examples

View source: R/generate_parameter_wrapper.R

Description

Compute ranking of biomarkers by sorting t-test p-values

Usage

1
rank_ttest(Y, A, W)

Arguments

Y

(numeric vector) - continuous or binary biomarkers outcome variables

A

(numeric vector) - binary treatment indicator: 1 = treatment, 0 = control

W

(numeric vector, numeric matrix, or numeric data.frame) - matrix of baseline covariates where each column corrspond to one baseline covariate and each row correspond to one observation.

Value

an integer vector containing ranks of biomarkers.

Examples

1
2
3
4
5
set.seed(1234)
data(simpleArray)
rank_ttest(Y = simulated_array,
           A = simulated_treatment,
           W = rep(1, length(A)))

adaptest documentation built on April 28, 2020, 7:24 p.m.