cor.bootci {CORREP}R Documentation

Bootstrap Confidence Interval for Multivaraite Correlation

Description

This function calcualtes Bootstrap confidence interval for multivaraite correlation. The procedure is very similair to those used to calcualte Bootstrape CI for other parameters. 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

Details

See manuscript.

Value

upperCI Upper bound of CI
lowerCI Lower bound of CI

Author(s)

Dongxiao Zhu and Youjuan Li

References

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

See Also

cor.LRtest1, cor.LRtest2, cor.test, permutest

Examples

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)

[Package CORREP version 1.0.1 Index]