[R] R2 function from PLS to use a model on test data

Addi Wei addiwei at gmail.com
Thu Jul 8 20:37:51 CEST 2010


I figured out the answer.  Since I have both the predicted and actual values,
I simply need to call the lm function, and summary to see R^2 which matches
what MOE provided.  

myline.fit <-lm( y~x)
summary(myline.fit)
-- 
View this message in context: http://r.789695.n4.nabble.com/R2-function-from-PLS-to-use-a-model-on-test-data-tp2281426p2282684.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list