cor2meanAdj: adjusted average square correlation by rows

Description Usage Arguments Details Value Author(s) References See Also Examples

Description

Finds in a computationally fast algorithm the adjusted average square correlation magnitude for every variable of a dataset.

Usage

1

Arguments

mat

p \times n matrix with the p-variate dataset.

Details

The adjusted average square correlation of variable i is given by

(n-1)/(n-2) \bar{r}_{i}^2 - 1/(n-2)

where n is the sample size and \bar{r}_{i}^2 is the average square correlation matrix for the ith row, which is computed by cor2mean.

Value

A vector containing the adjusted square average correlation (excluding diagonal) for every variable.

Author(s)

Mayer, Claus, Adria Caballe and Natalia Bochkina.

References

To come

See Also

cor2mean for average square correlations.

Examples

1
2
3
4
EX1        <- pcorSimulator(nobs = 50, nclusters= 3, nnodesxcluster = c(100,30,50), 
                            pattern = "powerLaw", plus = 0)
corsEX1     <- cor2mean(t(EX1$y))
corsadjEX1  <- cor2mean.adj(t(EX1$y))


Search within the ldstatsHD package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.