compare_index {experDesign}R Documentation

Compares two indexes

Description

Compare the distribution of samples with two different batches.

Usage

compare_index(pheno, index1, index2)

Arguments

pheno

A data.frame of the samples with the characteristics to normalize.

index1, index2

A list with the index for each sample, the name of the column in pheno with the batch subset or the character .

Value

A matrix with the variables and the columns of of each batch. Negative values indicate index1 was better.

See Also

check_index()

Examples

index1 <- create_subset(50, 24)
index2 <- batch_names(create_subset(50, 24))
metadata <- expand.grid(height = seq(60, 80, 5), weight = seq(100, 300, 50),
                         sex = c("Male","Female"))
compare_index(metadata, index1, index2)

[Package experDesign version 0.3.0 Index]