Hey Arne

I don't know about the rounding, but you shouldn't be concerned with the
calculation of Q^2. In the line where a value is assigned to RSS, the value
is assigned to h+1 as shown here:

                RSS[h + 1, ] = colSums((Y.old - t.new %*% t(c.new))^2)

i.e. the programmer is messing with the index, which is poor for the
readability, but explains the line you showed:

                Q2[h] = 1 - PRESS[h]/RSS[h] 

Hope it helps :)



--
View this message in context: 
http://r.789695.n4.nabble.com/Question-regarding-behaviour-of-package-plspm-tp4638578p4639035.html
Sent from the R help mailing list archive at Nabble.com.

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to