table.Correlation {PerformanceAnalytics} | R Documentation |
This is a wrapper for calculating correlation and significance against each column of the data provided.
table.Correlation(Ra, Rb, ...)
Ra |
a vector of returns to test, e.g., the asset to be examined |
Rb |
a matrix, data.frame, or timeSeries of benchmark(s) to test the asset against. |
... |
any other passthru parameters to cor.test |
A dataframe with correlation and significance against each column of the data provided as Rb
.
Peter Carl
# First we load the data data(managers) table.Correlation(managers[,1:6],managers[,7:8]) ctable = table.Correlation(managers[,1:6],managers[,8,drop=FALSE], conf.level=.99) dotchart(ctable[,1],labels=rownames(ctable),xlim=c(-1,1))