R/residuals.smacofID.R

Defines functions residuals.smacofID

Documented in residuals.smacofID

#residuals of distances for smacof objects

residuals.smacofID <- function(object, ...)
{
  reslist <- list(NULL)
  for (i in 1:length(object$dhat)) reslist[[i]] <- (as.matrix(object$dhat[[i]] - object$confdist[[i]]))
  names(reslist) <- names(object$dhat)
  return(reslist)  
}

Try the smacof package in your browser

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

smacof documentation built on March 19, 2024, 3:09 a.m.