How to compute a growth rate function?

Mining_KrilinMining_Krilin Member Posts: 2 Contributor I
edited November 2018 in Help



How to compute a growth rate function?





Hello community,

I'm a new RapidMiner user and I need help about a subject.

We have a large dataset and I need to make a function which use some attributes:

- attribute

- year

 

The function will calculate the rate like this:

[attribute(year)-attribute(year-1)]*100/attribute(year-1)

 

I've tried with the extension Python but it doesn't work.

For example:

Year               attribute          functionresult

2001              100                 N/A

2002              110                 +10%

2003              133                 +20% 

 

I hope that I were clear. 

Thanks for your help.

Your Fab


Tagged:

Best Answer

  • Telcontar120Telcontar120 Moderator, RapidMiner Certified Analyst, RapidMiner Certified Expert, Member Posts: 1,635 Unicorn
    Solution Accepted

    Take a look at the Series extension and the Lag operator, along with Generate Attributes.  That should take care of this for you.

    Brian T.
    Lindon Ventures 
    Data Science Consulting from Certified RapidMiner Experts
Sign In or Register to comment.