R/monregP.R

Defines functions `monregP`

# primary approach to ties
`monregP` <-
function(x, y, w = rep(1,length(x)), block = weighted.mean)
{
#x ... observed distances (diss)
#y ... Guttman transformed distances
#w ... weights

  o <- order(x,y)
  r <- order(o)
  return(pavasmacof(y[o],w[o])[r])
}

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.