## Not run: ------------------------------------
# corrs <- lapply(groups, function(x) lapply(densities, function(y)
# corr.matrix(resids.all[x], density=y)))
## ---------------------------------------------
Run the code above in your browser using DataLab