search for: micetrain

Displaying 1 result from an estimated 1 matches for "micetrain".

2010 Jul 07
2
R2 function from PLS to use a model on test data
Hello, I am having some trouble using a model I created from plsr (of train) to analyze each invididual R^2 of the 10 components against the test data. For example: mice1 <- plsr(response ~factors, ncomp=10 data=MiceTrain) R2(mice1) ##this provides the correct R2 for the Train data for 10 components ## Now my next objective is to calculate my model's R2 for each component on the Test data. (In other words - test how good the model is on test data) The only thing I need are the MiceTest.response, and compare...