Hi Gregory, Changing that to mod instead of r(mod) results in the following error
Traceback (most recent call last): File "C:\Documents and Settings\Administrator\Desktop\pls\pls.py", line 40, in <module> predicted=r.predict(mod, type='response', ncomp = 10, newdata = accFAS ) RPy_RException: Error in eval(predvars, data, env) : numeric 'envir' arg not of length one which is why I had thought it was r(mod) originally; or is this error telling me something else is wrong? Chris Gregory Warnes wrote: > > > > On Jun 10, 2008, at 9:20AM , Chris Arthur wrote: > >> Thanks Gregory, that "y ~ ." syntax solves my problems. and allows my to >> pull out the PLSR data I wanted, but leads me to my next problem. >> > > Glad to help. > > >> I then try to use my model to predict the value of the matrix accFAS >> predicted=r.predict(*r(mod)*, type='response', ncomp = 10, newdata = >> accFAS ) >> > I think your problem comes from the r(mod). This form expects a > string to be evaluated in r. Try this instead" > >> predicted=r.predict(*mod*, type='response', ncomp = 10, newdata = >> accFAS ) > > -G > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------- > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > http://sourceforge.net/services/buy/index.php > ------------------------------------------------------------------------ > > _______________________________________________ > rpy-list mailing list > rpy-list@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/rpy-list > ------------------------------------------------------------------------- Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php _______________________________________________ rpy-list mailing list rpy-list@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/rpy-list