R/Shape2SSCM.R

## Calculates the theoretical SSCM
# input: shape matrix (symmetric and pxp)
# output:
# theoretical SSCM


Shape2SSCM <- function(V) {
  p <- ncol(V)
  EVD <- eigen(V,symmetric=TRUE)
  delta <- evShape2evSSCM(EVD$values)
  sscm <- EVD$vectors %*% diag(delta) %*% t(EVD$vectors)
  return(sscm)
}

Try the sscor package in your browser

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

sscor documentation built on May 2, 2019, 2:07 a.m.