r - Projecting point into existing PCOA -
i'm trying project point existing pcoa space (in r). under impression must possible, can't figure out how go it.
here's how far i've gotten (a toy example):
x <- c(1:10) y <- c(10:1) z <- c(rnorm(10,mean=0,sd=2),rnorm(10,mean=10,sd=2)) m <- cbind(x,y,z) d <- dist(m) r <- pcoa(d) biplot(r,m)
the biplot generates representation want. now, given new point p=(x,y,z) project above space. reason need , can't add point original matrix new point going outlier , change projection of original space. want know point ends relative untainted representation.
also note don't use euclidean distance in reality, doing pca not option.
Comments
Post a Comment