I am using Rpy to do a Multiple Linear Regression in R, however, of all the coefficients I get from the regression, some of them are 'nan' instead of being a number.
Here is the code for the regression and accessing the coefficients. set_default_mode(NO_CONVERSION) #String list is a list of all the independent variables already in R regression_query = "metric~" + stringList regression = r.lm(r(regression_query)) set_default_mode(BASIC_CONVERSION) #This is an example of how I access each coefficient itemCoefficient = regression.as_py()['coefficients'][itemName] Thanks, ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ rpy-list mailing list rpy-list@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/rpy-list