bara_adjust: Adjusts a test set using the set of reference samples

Description Usage Arguments Value

Description

Adjusts a test set using the set of reference samples

Usage

1
bara_adjust(bara_fit, x, ref, batch = NULL, verbose = TRUE)

Arguments

bara_fit

Object of class BaraFit, created using the training set.

x

Matrix, the test data set with samples in rows.

ref

Numeric vector, index of the reference samples in the test set.

batch

Character/Numeric/Factor. The vector should represent the batch belongings for the samples in the test set x. If a vector is supplied, each batch is independently adjusted. Therefore, each batch must contain at least 1 reference sample.

verbose

Logical, should runtime messages be printed? Default is TRUE.

Value

A matrix corresponding to the normalized test set.


robingradin/bara documentation built on May 9, 2019, 2:24 a.m.