R/cor2pcor.R

Defines functions cor2pcor

Documented in cor2pcor

cor2pcor <- function(R){
  a <- solve(R)
  d <- dim(R)[1]
  com <- sqrt( diag(a) )
  a <- a / outer(-com, com, "*")
  diag(a) <- 1
  a
}

Try the pchc package in your browser

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

pchc documentation built on April 4, 2025, 1:11 a.m.