Free Access Week - Data Engineering + BI
Data Engineering and BI courses are free this week!
Free Access Week - Jun 2-8

opa (version 0.8.3)

compare_conditions: Calculates PCCs and c-values based on pairwise comparison of conditions.

Description

Calculates PCCs and c-values based on pairwise comparison of conditions.

Usage

compare_conditions(result, nreps = 1000L)

Value

compare_conditions returns a list with the following elements

pcc_mat

A lower triangle matrix containing PCCs calculated from each pairing of data columns.

cval_mat

A lower triangle matrix containing c-values calculated from each pairing of data columns.

pccs

A vector containing PCCs calculated from each pairing of data.

cvals

A vector containing c-values calculated from each pairing of data.

nreps

The number of permutations used to calculate the c-values.

Arguments

result

an object of class "opafit" produced by a call to opa().

nreps

an integer

Examples

Run this code
dat <- data.frame(t1 = c(9, 4, 8, 10),
                  t2 = c(8, 8, 12, 10),
                  t3 = c(8, 5, 10, 11),
                  t4 = c(10, 5, 11, 12))
h <- hypothesis(1:4)
opamod <- opa(dat, h)
compare_conditions(opamod)

Run the code above in your browser using DataLab