search for: micetest

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

2010 Jul 07
2
R2 function from PLS to use a model on test data
...actors, 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 that with predict(mice1, ncomp=1, newdata=MiceTest , and I should be able to calculate R2.....but I can't figure out the correct command to do this. I tried the command below, which does provide a different R2 response, however, I'm not sure it is correct as I get a...