[R] Question regarding behaviour of package {plspm}
ArthurDentDK
user_id3 at hotmail.com
Fri Aug 3 14:07:50 CEST 2012
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.
More information about the R-help
mailing list