R/scaled.dev.R

Defines functions scaled.dev

Documented in scaled.dev

scaled.dev <- function(resmca, var) {
  sv <- supvar(resmca, var)
  res <- lapply(1:ncol(sv$coord), function(x) round(abs(outer(sv$coord[,x], sv$coord[,x], "-")),3))
  res <- lapply(res, function(x) {rownames(x) <- colnames(x) <- rownames(sv$coord); return(x)})
  names(res) <- colnames(sv$coord)
  return(res)
}

Try the GDAtools package in your browser

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

GDAtools documentation built on June 8, 2025, 10:08 a.m.