rainer grohmann writes:

> However, when I try to map the scores back to variable space, I ran into
> problems:
[...]
> cbind(t$scores[,1],(t$scores%*%(t$loadings)%*%t$projection)[,1])

You need to transpose the loadings:

> all.equal(unclass(t$scores),
+           t$scores %*% t(t$loadings) %*% t$projection)
[1] TRUE

(A tip: Since 't' is used for transposing, it is usually a Good
Thing(TM) to avoid using it as a varable name.)

-- 
Bjørn-Helge Mevik

______________________________________________
[email protected] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html

Reply via email to