Displaying 1 result from an estimated 1 matches for "cagr".
Did you mean:
cage
2009 Feb 22
0
calculating compound growth rates - creating a flexible function
R-listers
I am still finding my way with R - and feel that I am making a complete dogs
dinner of something that should be pretty simple.
What I'd like to do is to create a simple function that i can use to
calculate compound growth rates (CAGRs) over a data frame. I'd like the
function to be flexible enough to vary the time period and to run over
'panel data'.
The issue is that I can get a function to work over one variable, but cant
figure out how to generalise it, specifically
... how do i get the original variable to be...