Learn R Programming

bapred (version 0.2)

noba: No batch effect adjustment

Description

This function is merely included for consistency. It returns the raw dataset not adjusted for batch effects.

Usage

noba(x, batch)

Arguments

x
matrix. The covariate matrix. Observations in rows, variables in columns.
batch
factor. Batch variable. Currently has to have levels: '1', '2', '3' and so on.

Value

  • noba returns an object of class noba. An object of class "noba" is a list containing the following components:
  • xadjmatrix of (training) data
  • nbatchesnumber of batches
  • batchbatch variable

Examples

Run this code
data(autism)

Xadj <- noba(x=X, batch=batch)$adj

all(as.vector(Xadj)==as.vector(X))

Run the code above in your browser using DataLab