powered by
CompGR: Complete Annual Growth Rate Generator
cAgr(time, obs, model = NULL)
CAGR
A numeric vector containing sequence of time points
A numeric vector containing sequence of observations
Three models. User can may select one of the three methods including Linear, Logarithmic and Compound growth
1. Sharma, M. K., Sisodia, B. V. S., & Lal, K. (2013). Growth and trends of pulse production in India. Journal of Food Legumes, 26(1and2), 86-92.
# \donttest{ time<-c(1,2,3,4,5,6,7) obs<-c(14,18,19,15,14,17,16) CAGR_out<-cAgr(time=time,obs=obs,model="lin") # }
Run the code above in your browser using DataLab