Defines functions cor2mean.adj

Documented in cor2mean.adj

###function that calculates the average ADJUSTED squared correlations of each row
###of the correlation matrix EXCLUDING the diagonal

cor2mean.adj <- function(mat){
  n <- dim(mat)[2]
  p <- dim(mat)[1]
  without.diag <- p/(p-1)*cor2mean(mat)-1/(p-1)

Try the ldstatsHD package in your browser

Any scripts or data that you put into this service are public.

ldstatsHD documentation built on Aug. 14, 2017, 5:06 p.m.