Skip to main content
Archived

Regression Analysis Transformer

Related products:Transformers
  • April 20, 2016
  • 4 replies
  • 53 views

willydevera
Contributor
Forum|alt.badge.img+9

Complementary to the StatisticsCalculator transformer, wouldn't it be great to have a separate FME transformer that emulates Excel's Regression function. In this case, esp. for spreadsheet lovers, we don't need to do an additional step of first writing our results into Excel then separately do Data --> Data Analysis --> Regression, in Excel.

Possible features for the proposed RegressionAnalysis transformer include Linear Regression and Multi-Variate Multiple Regression. Well if it's too much of an ask, we could perhaps start with Linear Regression functionality... :-)

However, if this functionality is already available in 2016.1 or in any planned future releases (BTW I'm still using 2014), please treat this post as a question rather than a suggested new idea. Otherwise, please let me know if this is possible at all.

Thanks,

Wilfredo de Vera, P.Eng.

Data Specialist

This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

4 replies

david_r
Celebrity
  • April 21, 2016

Just for info, I've done something similar with the PythonCaller and the SciPy library. It's not too difficult if you're comfortable writing some Python.


Can you share the workflow or at least the code used the the python called? I am comfortable with Python but a bit confused with using it in the FME environment


david_r
Celebrity
  • September 16, 2016
Sorry, I cannot share the code as it was for a client.

 

But it's nothing complicated if you have some Python basics

 

  • Download and install a full version of Python
  • Point FME to the full Python version (the one integrated with FME is a bit limited)
  • Download and install scipy
  • Import scipy inside PythonCaller
  • Extract values from your feature attributes using the fmeobjects api
  • Use values to do calculates
Hope this helps.

Forum|alt.badge.img+2
  • September 20, 2019

There are several R based custom transformers on the FME HUB that could be used as a template for R based Linear Regression and Multi-Variate Multiple Regression and also this article: RCaller: Ins and outs of using R in FME