How to compute a growth rate function?


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
Best Answer
-
Telcontar120 RapidMiner Certified Analyst, RapidMiner Certified Expert, Member Posts: 1,635
Unicorn
Take a look at the Series extension and the Lag operator, along with Generate Attributes. That should take care of this for you.
2