Learn R Programming

CORREP (version 1.38.0)

cor.bootci: Bootstrap Confidence Interval for Multivariate Correlation

Description

This function calculates Bootstrap confidence interval for multivariate correlation. The procedure is very similar to those used to calculate Bootstrap CI's for other parameters, such as mean and correlation. See manuscript for detail.

Usage

cor.bootci(x, y = NULL, m, G, alpha)

Arguments

x
data matrix, column represents samples (conditions), and row represents variables (genes), see example below for format information
y
optional, used when x and y are vectors
m
number of replicates
G
number of genes
alpha
significant level

Value

upperCI
Upper bound of CI
lowerCI
Lower bound of CI

Details

See manuscript.

References

Zhu, D and Li Y. 2007. Multivariate Correlation Estimator for Inferring Functional Relationships from Replicated 'OMICS' data. Submitted.

See Also

cor.LRtest, cor.LRtest.std, cor.test, permutest

Examples

Run this code
library("CORREP")
d0 <- NULL
## sample size is set to 5 
for(l in 1:5)
d0 <- rbind(d0, rnorm(8))
## data must have row variance of 1 
d0.std <- apply(d0, 2, function(x) x/sd(x))
M <- cor.balance(t(d0.std), m = 2, G= 4)
pv.bootci <- cor.bootci(t(d0.std), m = 2, G= 4, alpha = 0.05)

Run the code above in your browser using DataLab