plotCor {remaCor} | R Documentation |
Correlation plot
Description
Correlation plot
Usage
plotCor(cor)
Arguments
cor |
correlation matrix between of test statistics. Default considers uncorrelated test statistics |
Value
Plot of correlation matrix
Examples
# Generate effects
library(mvtnorm)
library(clusterGeneration )
n = 4
Sigma = cov2cor(genPositiveDefMat(n)$Sigma)
beta = t(rmvnorm(1, rep(0, n), Sigma))
stders = rep(.1, n)
# set names
rownames(Sigma) = colnames(Sigma) = LETTERS[1:n]
rownames(beta) = names(stders) = LETTERS[1:n]
# Run random effects meta-analysis,
# account for correlation
RE2C( beta, stders, Sigma)
# Make plot
plotCor( Sigma )
[Package remaCor version 0.0.18 Index]