{psych}R Documentation

Bootstrapped confidence intervals for raw and composite correlations


Although normal theory provides confidence intervals for correlations, this is particularly problematic with Synthetic Aperture Personality Assessment (SAPA) data where the individual items are Massively Missing at Random. Bootstrapped confidence intervals are found for Pearson, Spearman, Kendall, tetrachoric, or polychoric correlations and for scales made from those correlations.

Usage, keys = NULL, n.iter = 100,  p = 0.05, poly = FALSE, method = "pearson", 



The raw data


If NULL, then the confidence intervals of the raw correlations are found. Otherwise, composite scales are formed from the keys applied to the correlation matrix (in a logic similar to cluster.cor but without the bells and whistles) and the confidence of those composite scales intercorrelations.


The number of iterations to bootstrap over. This will be very slow if using tetrachoric/or polychoric correlations.


The upper and lower confidence region will include 1-p of the distribution.


if FALSE, then find the correlations using the method specified (defaults to Pearson). If TRUE, the polychoric correlations will be found (slowly). Because the polychoric function uses multicores (if available), and does as well, the number of cores used is options("mc.cores")^2.


"pearson","spearman", "kendall"


Show the correlation plot with correlations scaled by the probability values. To show the matrix in terms of the confidence intervals, use cor.plot.upperLowerCi.


Other parameters for axis (e.g., cex.axis to change the font size, srt to rotate the numbers in the plot)


The original data are and correlations are found. If keys are specified (the normal case), then composite scales based upon the correlations are found and reported. This is the same procedure as done using cluster.cor or scoreItems.

Then, n.iter times, the data are recreated by sampling subjects (rows) with replacement and the correlations (and composite scales) are found again (and again and again). Mean and standard deviations of these values are calculated based upon the Fisher Z transform of the correlations. Summary statistics include the original correlations and their confidence intervals. For those who want the complete set of replications, those are available as an object in the resulting output.

Although particularly useful for SAPA ( type data, this will work for any normal data set as well.

Although the correlations are shown automatically as a cor.plot, it is possible to show the upper and lower confidence intervals by using cor.plot.upperLowerCi.



The original (composite) correlation matrix.


Mean (Fisher transformed) correlation


Standard deviation of Fisher transformed correlations


Mean +/- alpha/2 of the z scores as well as the alpha/2 and 1-alpha/2 quantiles. These are labeled as lower.emp(ircal), lower.norm(al), upper.norm and upper.emp.


The observed replication values so one can do one's own estimates


William Revelle


For SAPA type data, see Revelle, W., Wilt, J., and Rosenthal, A. (2010) Personality and Cognition: The Personality-Cognition Link. In Gruszka, A. and Matthews, G. and Szymura, B. (Eds.) Handbook of Individual Differences in Cognition: Attention, Memory and Executive Control, Springer.

See Also

make.keys, cluster.cor, and scoreItems for forming synthetic correlation matrices from composites of item correlations. See also corr.test for standard significance testing of correlation matrices. See also lowerCor for finding and printing correlation matrices, as well as lowerMat for displaying them. Also see cor.plot.upperLowerCi for displaying the confidence intervals graphically.


  keys.list <-
openness = c("O1","-O2","O3","O4","-O5")) 
  keys <- make.keys(bfi,keys.list)
rci <-[1:200,],keys,n.iter=10) #also shows the graphic
cor.plot.upperLowerCi(rci)  #to show the upper and lower confidence intervals

[Package psych version 1.4.5 Index]
Part of the Personality Project      Take our Personality Test