I'm trying to use the Ordinary Least Squares tool in ArcGIS 10.2 but it only accepts feature classes as input and I have a file geodatabase table. I realize that I can export the table to Excel or MATLAB and perform the linear regression there, but I am working in ModelBuilder and need to keep everything within the model. Are there any workarounds or conversions that anyone knows about?

  • Is it possible to create a shapefile based on your table then use the OLS tool on the shapefile? – Roman Jul 22 '14 at 18:45

How about making a script tool via Python?

I use the scipy Python module...



Installing scipy on the top of the ArcGIS Python install is not very straightforward, so beware...

  • Good idea. I believe scipy is included with the arcgis install of Python. – Aaron Jul 22 '14 at 20:11
  • Clarification: scipy libabry is NOT included with the arcgis install of Python (at least not at 10.2.2). – csny490 Jul 22 '14 at 22:19
  • Sorry, you are correct. I forgot that I had installed scipy at an earlier occasion. – Aaron Jul 22 '14 at 22:25
  • Cool, I think scipy is going to be the way to go. Now I just have to figure out how to configure the script tool to take columns from my table as parameters. – GISUser9 Jul 22 '14 at 22:49

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.