rank_ttest {adaptest} | R Documentation

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

### Description

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

### Usage

    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

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

[Package adaptest version 1.4.0 Index]